User Tools

Site Tools


docker:remove_an_image

This is an old revision of the document!


Docker - Remove an image

Find the image

docker images

Returns

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
ubuntu              16.10               df4ba6fcd70e        36 hours ago        100.2 MB
ubuntu              16.04               f753707788c5        36 hours ago        127.2 MB
ubuntu              latest              f753707788c5        36 hours ago        127.2 MB
hello-world         latest              c54a2cc56cbb        3 months ago        1.848 kB
docker/whalesay     latest              6b362a9f73eb        16 months ago       247 MB
docker rmi image_name

Seeing all created containers is as simple as docker ps -a.

To remove all existing containers (not images!) run docker rm $(docker ps -aq)

docker/remove_an_image.1476526670.txt.gz ยท Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki