Skip to content

Instantly share code, notes, and snippets.

@torokmark
Last active April 9, 2017 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torokmark/bbc8a053ecad4c0a1f017bebe8ee3d4c to your computer and use it in GitHub Desktop.
Save torokmark/bbc8a053ecad4c0a1f017bebe8ee3d4c to your computer and use it in GitHub Desktop.
$ docker --help
$ docker run --help
$ docker-machine ls
$ docker-machine start default
$ docker-machine rm default
$ docker-machine create default --driver virtualbox
$ eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env default)
$ docker ps
$ docker ps -a
$ docker images
$ docker info
$ docker version
$ docker run hello-world
// image goes under images, ps still empty
$ docker pull budybox
$ winpty docker run -it busybox sh
// it opens a shell on the busybox image
// winpty prefix is for git bash on windows
$ docker rm <ps-container-id>
$ docker port <container-name>
$ docker-machine ip default
$ docker stop <ps-container-id>
$ docker pull <image-name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment