Docker-out-of-Docker (DooD)

Docker-out-of-Docker (DooD)

Using the existing Docker daemon

How it works

Containerized Docker CLI

Mapped Docker socket

Disadvantages

Conflicts with other containers

Interferes with the host


Demo: Docker-out-of-Docker (DooD) 040_inception/01_dood

Mapping the daemon socket

Use existing daemon from container:

docker run --interactive --tty --rm \
    --volume /var/run/docker.sock:/var/run/docker.sock \
    docker:latest \
        docker version