Doubledocker: Docker in Docker
Run Docker inside Docker
This image needs privileged permissions. Don't forget to use the
--privileged command line flag.
The AUFS filesystem at
/var/lib/docker cannot sit ontop of another AUFS filesystem. The directory is therefore exported as a container volume.
The Docker daemon listens on the default socket and on port 2375.
To run the doubledocker container simply write:
docker run --privileged -P mattgruter/doubledocker
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