Created
September 28, 2015 20:43
-
-
Save djmaze/8ab61a8dc42fe7500c70 to your computer and use it in GitHub Desktop.
Running Docker inside docker
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
root@host $ docker run --privileged -d --name dockerd docker:dind | |
root@host $ docker run -it --rm --link dockerd:docker ubuntu bash | |
root@container $ apt-get update && apt-get -y install docker.io | |
root@container $ DOCKER_HOST="docker:2375" docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment