dockerfile-doubledocker

Run Docker inside Docker

Stars
12

Doubledocker: Docker in Docker

Run Docker inside Docker

Link: mattgruter/doubledocker

Permissions

This image needs privileged permissions. Don't forget to use the --privileged command line flag.

Volumes

The AUFS filesystem at /var/lib/docker cannot sit ontop of another AUFS filesystem. The directory is therefore exported as a container volume.

Ports

The Docker daemon listens on the default socket and on port 2375.

Example

To run the doubledocker container simply write:

docker run --privileged -P mattgruter/doubledocker

Use Cases

Running the Drone CI server inside a container.

Known Issues

Attempting to connect to the docker daemon from the outside fails:

Get http://localhost:49153/v1.12/containers/json: net/http: transport closed before response was received