Skip to content

Instantly share code, notes, and snippets.

@trohit
Last active January 9, 2020 03:46
Show Gist options
  • Save trohit/f8cb94d373ec3c8147985886b2bb7475 to your computer and use it in GitHub Desktop.
Save trohit/f8cb94d373ec3c8147985886b2bb7475 to your computer and use it in GitHub Desktop.
# 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