Add Host to swarmClean*
This commit is contained in:
parent
7572e934f7
commit
96c60e2441
@ -133,6 +133,7 @@ swarmCleanVolumes(){
|
|||||||
volumes=($(docker-machine ssh ${node} "docker volume ls -q"))
|
volumes=($(docker-machine ssh ${node} "docker volume ls -q"))
|
||||||
docker-machine ssh ${node} "docker volume rm ${volumes[@]}"
|
docker-machine ssh ${node} "docker volume rm ${volumes[@]}"
|
||||||
done
|
done
|
||||||
|
docker volume rm $(docker volume ls -q)
|
||||||
}
|
}
|
||||||
|
|
||||||
swarmCleanContainers() {
|
swarmCleanContainers() {
|
||||||
@ -142,4 +143,5 @@ swarmCleanContainers() {
|
|||||||
containers=($(docker-machine ssh ${node} "docker container ls -aq"))
|
containers=($(docker-machine ssh ${node} "docker container ls -aq"))
|
||||||
docker-machine ssh ${node} "docker container rm ${containers[@]}"
|
docker-machine ssh ${node} "docker container rm ${containers[@]}"
|
||||||
done
|
done
|
||||||
|
docker container rm $(docker container ls -aq)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user