From d5895d32432dd16596992c18cc008281ff0905cf Mon Sep 17 00:00:00 2001 From: Nitish Tiwari Date: Wed, 11 Oct 2017 22:47:57 +0530 Subject: [PATCH] Update docker swarm doc to use docker volume prune (#5053) docker prune command is an improvement over previous two step process of removal of unused volumes in Swarm. --- docs/orchestration/docker-swarm/README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/orchestration/docker-swarm/README.md b/docs/orchestration/docker-swarm/README.md index e8bbe71eb..244c53f52 100644 --- a/docs/orchestration/docker-swarm/README.md +++ b/docs/orchestration/docker-swarm/README.md @@ -51,16 +51,13 @@ Remove the distributed Minio services and related network by ```shell docker stack rm minio_stack ``` -Swarm doesn't automatically remove host volumes created for services. This may lead to corruption when a new Minio service is created in the swarm. So, we recommend removing all the volumes used by Minio, manually. To do this, go to each node in the swarm and list the volumes by +Swarm doesn't automatically remove host volumes created for services. This may lead to corruption when a new Minio service is created in the swarm. So, we recommend removing all the volumes used by Minio, manually. To do this, logon to each node in the swarm and run ```shell -docker volume ls +docker volume prune ``` -Then remove `minio_stack` volumes by +This will remove all the volumes not associated with any container. -```shell -docker volume rm volume_name -``` ### Notes