Last active
September 24, 2019 11:12
-
-
Save ArgonQQ/baa503d246f3066b19a20042eb809e98 to your computer and use it in GitHub Desktop.
🐳 Docker Cheatsheet 🐳
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
| # Will set the variable to use Docker without the need to start "Docker Quickstart Terminal" | |
| # eval takes a string as its argument, and evaluates it as if you'd typed that string on a command line. | |
| # (If you pass several arguments, they are first joined with spaces between them.) | |
| eval $(docker-machine env) | |
| # stop all docker container | |
| docker stop $(docker ps -a -q) | |
| # rm all docker container | |
| docker rm $(docker ps -a -q) | |
| # show Volume Mounts | |
| docker inspect -f '{{ .Mounts }}' CONTAINERNAME | |
| #Removes all Volumes | |
| 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