Sign inSign up

mattgruter/doubledocker

By mattgruter

•Updated over 8 years ago

Run Docker inside Docker (aka. dind).

Image
11

5.5K

mattgruter/doubledocker repository overview

⁠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

Tag summary

Content type

Image

Digest

sha256:5bb332b0c…

Size

76.1 MB

Last updated

over 8 years ago

docker pull mattgruter/doubledocker