docker:remove_an_image
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docker:remove_an_image [2016/10/15 10:17] – created peter | docker:remove_an_image [2020/05/13 08:45] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Docker - Remove an image ====== | ||
- | |||
- | ===== Find the image ===== | ||
- | |||
- | <code bash> | ||
- | docker images | ||
- | </ | ||
- | |||
- | Returns | ||
- | |||
- | < | ||
- | REPOSITORY | ||
- | ubuntu | ||
- | ubuntu | ||
- | ubuntu | ||
- | hello-world | ||
- | docker/ | ||
- | </ | ||
- | |||
- | <code bash> | ||
- | 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)