CleanUpDocker

From DrewWiki
Revision as of 13:13, 24 January 2018 by Drew (talk | contribs) (Added CleanUpDocker)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Remove all containers then remove all images

$ docker ps -a | cut -f 1 -d" " | xargs docker rm
$ docker images | awk '{print $3}' | xargs docker rmi