Last active
January 9, 2020 03:46
-
-
Save trohit/f8cb94d373ec3c8147985886b2bb7475 to your computer and use it in GitHub Desktop.
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
# cheat sheet | |
https://github.com/wsargent/docker-cheat-sheet | |
#cmds | |
docker --version | |
docker info | |
docker images | |
docker ps | |
docker system prune -a | |
docker pull ubuntu:ubuntu | |
docker run hello-world | |
docker top | |
docker stats | |
docker stats --no-stream | |
#Examples | |
docker run --rm --name droppy1 silverwind/droppy | |
docker run --rm --name droppy -p 0.0.0.0:80:8989 -v ~/web/droppy/config:/config -v ~/web/droppy/files:/files silverwind/droppy | |
docker inspect droppy | jq '.[].State.Pid' | |
docker inspect droppy | jq '.[].HostConfig.Binds' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment