Removing Images
Check all images
Use docker images
to check all images.
bash
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
vue-app latest d70d1656b8d2 6 minutes ago 420MB
<none> <none> 9b08c5ae017c 18 hours ago 419MB
<none> <none> 4310867f09c9 18 hours ago 411MB
<none> <none> 118155e672b5 18 hours ago 411MB
<none> <none> 3c144f4aef49 19 hours ago 411MB
<none> <none> c05e9f0c706f 19 hours ago 411MB
<none> <none> 1dee3cde95dc 19 hours ago 411MB
<none> <none> 3cc74d8ddc32 19 hours ago 188MB
<none> <none> 5c81ba5b990c 19 hours ago 369MB
js-dockerize latest bf69f38b3053 5 days ago 187MB
<none> <none> fcc3e847d662 5 days ago 187MB
ubuntu latest e4c58958181a 5 weeks ago 77.8MB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Prune images
For those images with no tag and no repository, they lost the relationship from the source image, so we can use docker image prune
to get rid of them.
bash
docker image prune
WARNING! This will remove all dangling images.
Are you sure you want to continue? [y/N] y
Deleted Images:
deleted: sha256:1dee3cde95dc7783d2a402f211b6e5be23e6f6b1f8f5b71cd617d78eaf70a90d
deleted: sha256:3c144f4aef49d3b9c114f5168915a805bcb23151e87868a07c0d6bcef4325e8e
Total reclaimed space: 0B
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
Prune containers
Also for redundant containers, we use docker container prune
.
bash
docker container prune
WARNING! This will remove all stopped containers.
Are you sure you want to continue? [y/N] y
Deleted Containers:
81047f188a234b23667ec1eb2ab456b32a886bc1c09de1bf52effb2e5b9837dd
fca78fa4026140aeb8586842c724e1ac1b4933addf31b11e1db848e92592f9b7
9bfcbe28f1796a9abedf237f3a712e4b45527737498473fef16a3370a5d1bfc0
0623fa1756d3346c50e536684ad3a71d8bd4661027bd2ec25ec6000a495e4082
86e64c7a1b95b7bc6359c2cc712f6f47d4a7726e22b74d4df5e12d142ea70b2a
b05cc8c3ad35f87f60f43dda86cbdf189bc68c10c03b13f6bc0d1f5c31c2997c
47733d81a00ca51ee5d2b2e538c02aba275dfa89388552075c579ff1401dcd8e
c288b12c8e2705106cb382b9940e0651c197d50c2e51b2878877a5bbd417f0d9
c0735cd1e137b11d4c2bc71d94f50923747dab1516ae5a5606a57387e8d1c6e4
11c5eb2fa1a22fbb1c87ca249c23989bfe52e96ebbb326a21b505d0dad85817e
34aee1a42ba02885f3e9534cd1fb4d68b3f4dc7353a21a2935878b60252d7615
d7e09791228a671bbd0908d19ca3242f91f839492f73204d26a19283a838277f
305f5de37d93af46c1b4a79cd8a4330addabbd26b4879b29636297cfb5a3ffcd
e95b82e89bc466ab8cba6e93f0af609a96491aa3fb39094e8d1c790476585db1
21086b1bb6fe547d430ad6ec508a5d3b391f81be7d71a074310afb1bb05ab55d
df4874e41abb1f65cd6cc0a72251c57a8f014b3452df9baa2313424bac576b7f
378011c72b26b1bbacab0859ad55715c8acdf914278d73f128a222380a2ff4f1
09a6de8aa4be818a90a234192ddda2c3745369b4b1579ec3b84935f7ad13f59a
b70c1c1984e026286d341914c622c4d6a8ade49a64b204748ad640e239ee78a3
Total reclaimed space: 98.61MB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Removing images
docker image rm <image_name|image_id>