Last active
April 9, 2017 21:13
-
-
Save torokmark/bbc8a053ecad4c0a1f017bebe8ee3d4c 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
$ 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