Name: docker-docker
Owner: MILLION12
Description: Docker in a Docker
Created: 2016-06-22 13:33:56.0
Updated: 2017-03-14 23:37:55.0
Pushed: 2016-06-22 15:23:18.0
Homepage: null
Size: 3
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Somtimes we all need to use docker in a docker. For this purpose this image was prepared and it's using latest version of docker from official repo. Docker Compose is installed too.
docker run \
--name docker \
-d \
--privileged \
million12/docker
docker run \
--name docker \
-d \
-e DOCKER_PORT=12345 \
-p 12345:12345 \
--privileged \
million12/docker
make sure to use -p
option which exports custom port to host machine
note: This image need to be run with --privileged
option
DOCKER_PORT
- Specify on which port docker daemon should listen.
Use docker command to see if all required containers are up and running:
cker ps
Check logs of docker container:
cker logs docker
Sometimes you might just want to review how things are deployed inside a running container, you can do this by executing a bash shell through docker's exec command:
er exec -ti docker /bin/bash
History of an image and size of layers:
er history --no-trunc=true million12/docker | tr -s ' ' | tail -n+2 | awk -F " ago " '{print $2}'
Author: Przemyslaw Ozgo (linux@ozgo.info)
Sponsored by Prototype Brewery - the new prototyping tool for building highly-interactive prototypes of your website or web app. Built on top of Neos CMS and Zurb Foundation framework.