Last active
May 16, 2019 07:00
-
-
Save andi1984/779c24d865092300c5e669350500f0c3 to your computer and use it in GitHub Desktop.
Docker - Remove
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) | |
# Prune unused volumes | |
docker volume prune | |
# Log in with bash to container | |
docker exec -i -t <container-id> /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment