This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
packages:docker [2016-05-31 07:51] glen [Maintenance] |
packages:docker [2016-06-09 14:59] glen [Maintenance] cleanup stopped containers |
||
---|---|---|---|
Line 39: | Line 39: | ||
==== Maintenance ==== | ==== Maintenance ==== | ||
+ | |||
+ | Getting rid of stopped containers | ||
+ | |||
+ | <code> | ||
+ | docker ps -f status=exited | ||
+ | docker ps -q -f status=exited | xargs -r docker rm | ||
+ | </code> | ||
Getting rid of unused images | Getting rid of unused images |