million12/docker-docker

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Docker working in a Docker

CircleCI Build Status GitHub Open Issues GitHub Stars GitHub Forks
Stars on Docker Hub Pulls on Docker Hub
Docker Layers

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.

Basic usage
docker run \
  --name docker \
  -d \
  --privileged \
  million12/docker
Custom port usage
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

Environmental Variables

DOCKER_PORT - Specify on which port docker daemon should listen.

Docker troubleshooting

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

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.