Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Commit

Permalink
Added warning about container, image and volume removals
Browse files Browse the repository at this point in the history
  • Loading branch information
mikljohansson committed Mar 9, 2016
1 parent aca987a commit 2dabdf8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ This image will periodically clean up exited containers and remove images and vo
running container. Based on [tutumcloud/image-cleanup](https://github.com/tutumcloud/image-cleanup) and
[chadoe/docker-cleanup-volumes](https://github.com/chadoe/docker-cleanup-volumes) with some small fixes.

**WARNING: This script will remove all exited containers, data-only containers and unused images unless you
carefully exclude them. Take care if you mount /var/lib/docker into the container since that will clean
up all unused data volumes. If it's not compatible with your system or Docker version it may delete
all your volumes, even from under running containers.**

Normally any Docker containers that exit are still kept on disk until *docker rm -v* is used to clean
them up. Similarly any images that aren't used any more are kept around. For a cluster node that see
lots of containers start and stop, large amounts of exited containers and old image versions can fill
Expand Down

0 comments on commit 2dabdf8

Please sign in to comment.