From 1ae94fd83e999cfec4e1a58ea52168c4d1f9eb4b Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 14 Sep 2017 17:30:33 +0200 Subject: [PATCH] Add warning for dangling vols --- docs/install-update.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/install-update.md b/docs/install-update.md index 80d1baa1f..c6362ae55 100644 --- a/docs/install-update.md +++ b/docs/install-update.md @@ -64,6 +64,10 @@ docker-compose up -d --remove-orphans ### Step 3 Clean-up dangling (unused) images and volumes: +It is **very important** to _not_ run these commands when your containers are deleted. +Running `docker-compose down` - for example - will delete your containers. Your volumes are now in a dangling state! Running the commands shown below, _will_ remove your volumes and therefore your data. + + ``` docker rmi -f $(docker images -f "dangling=true" -q) docker volume rm $(docker volume ls -qf dangling=true)