Last active
January 8, 2018 20:38
-
-
Save aliaksandr-s/092cc7cdf2255bceb0edc356c54e696e to your computer and use it in GitHub Desktop.
Useful docker tips
This file contains hidden or 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
// Remove all the containers that end with '_data': | |
docker rm $(docker ps -a | grep "_data" | awk 'NR>1 {print $1}') | |
// show and remove all unused data volumes | |
docker volume ls -qf dangling=true | |
docker volume rm $(docker volume ls -qf dangling=true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment