Browse Source

Remove volumes pendentes

pull/1914/head
Edward Ribeiro 7 years ago
parent
commit
a03ced746e
  1. 7
      scripts_docker/remove-all-containers.sh

7
scripts_docker/remove-all-containers.sh

@ -1,4 +1,5 @@
#!/bin/bash
sudo docker stop $(docker ps -a -q) # Parar containers
sudo docker rm $(sudo docker ps -a -q) # Remover containers
sudo docker rmi -f $( sudo docker images -q ) # Remover imagens
sudo docker stop $(docker ps -a -q) # Para containers
sudo docker rm $(sudo docker ps -a -q) # Remove containers
sudo docker rmi -f $( sudo docker images -q ) # Remove imagens
sudo docker volume rm $(sudo docker volume ls -q -f dangling=true) # Remove volumes

Loading…
Cancel
Save