Add Host to swarmClean*

This commit is contained in:
Adphi 2018-06-04 14:02:55 +02:00
parent 7572e934f7
commit 96c60e2441

View File

@ -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)
}