docker:images:remove_an_image
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docker:images:remove_an_image [2020/07/15 09:30] – external edit 127.0.0.1 | docker:images:remove_an_image [2022/09/19 14:23] (current) – [Remove an image] peter | ||
---|---|---|---|
Line 20: | Line 20: | ||
---- | ---- | ||
- | Now remove | + | ===== Remove |
<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) | ||
</ | </ | ||
Line 89: | Line 81: | ||
</ | </ | ||
- | The **dangling=true filter** finds unused images. | + | <WRAP info> |
+ | **NOTE: | ||
+ | </ |
docker/images/remove_an_image.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1