docker:images:remove_an_image
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
docker:images:remove_an_image [2022/09/19 14:22] – [Remove dangling (unused) images] peter | docker:images:remove_an_image [2022/09/19 14:23] (current) – [Remove an image] peter | ||
---|---|---|---|
Line 24: | Line 24: | ||
<code bash> | <code bash> | ||
docker rmi image_name | docker rmi image_name | ||
- | </ | ||
- | |||
- | Seeing all created containers is as simple as **docker ps -a**. | ||
- | |||
- | To remove all existing containers (not images!) run: | ||
- | |||
- | <code bash> | ||
- | docker rm $(docker ps -aq) | ||
</ | </ | ||
docker/images/remove_an_image.1663597364.txt.gz · Last modified: 2022/09/19 14:22 by peter