Docker series: 5. Remove your docker image.
Published in
1 min readOct 5, 2019
This will help you to delete docker image from your machine,
- List the images,
[root@machine1 ~]# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
jacksparrow007/hadooppresetup latest 2c3a110c721e 13 hours ago 658MB
hadooppresetup 7.6 480bb5e4c896 13 hours ago 658MB
ubuntu latest 4c108a37151f 4 weeks ago 64.2MB
centos centos7 9f38484d220f 4 months ago 202MB
centos latest 9f38484d220f 4 months ago 202MB
hello-world latest fce289e99eb9 6 months ago 1.84kB
Use the following command.
[root@machine1 ~]# docker image rm 480bb5e4c896
Untagged: hadooppresetup:7.6
Deleted: sha256:480bb5e4c896cb6a6537edcff5fafba519a92b8969265f3da42eaa9c760663c8
[root@machine1 ~]#
Verify:
[root@machine1 ~]# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
jacksparrow007/hadooppresetup latest 2c3a110c721e 13 hours ago 658MB
ubuntu latest 4c108a37151f 4 weeks ago 64.2MB
centos centos7 9f38484d220f 4 months ago 202MB
centos latest 9f38484d220f 4 months ago 202MB
hello-world latest fce289e99eb9 6 months ago 1.84kB
[root@machine1 ~]#
Series next read;
https://medium.com/cloudscoop/cloudscoop-docker-series-build-a-docker-e608f51d857a