Usefull docker commands

From DevOps Notebook
Revision as of 10:55, 19 January 2022 by MilosZ (talk | contribs) (Created page with "=== Clean up overlay folder === <pre> # docker system prune -a -f </pre> or <pre> # docker rm -v $(sudo docker ps -a -q -f status=exited) # docker rmi -f $(sudo docker images...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Clean up overlay folder

# docker system prune -a -f

or

# docker rm -v $(sudo docker ps -a -q -f status=exited)
# docker rmi -f  $(sudo docker images -f "dangling=true" -q)
# docker volume ls -qf dangling=true | xargs -r docker volume rm