From 96c60e2441ffa363a536d20377411c7146b08286 Mon Sep 17 00:00:00 2001 From: Adphi Date: Mon, 4 Jun 2018 14:02:55 +0200 Subject: [PATCH] Add Host to swarmClean* --- templates/zshrc.zsh-template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template index 966d3012..154208ba 100644 --- a/templates/zshrc.zsh-template +++ b/templates/zshrc.zsh-template @@ -133,6 +133,7 @@ swarmCleanVolumes(){ volumes=($(docker-machine ssh ${node} "docker volume ls -q")) docker-machine ssh ${node} "docker volume rm ${volumes[@]}" done + docker volume rm $(docker volume ls -q) } swarmCleanContainers() { @@ -142,4 +143,5 @@ swarmCleanContainers() { containers=($(docker-machine ssh ${node} "docker container ls -aq")) docker-machine ssh ${node} "docker container rm ${containers[@]}" done + docker container rm $(docker container ls -aq) }