3 ms·
docker-in-docker doesn't run a docker daemon in the container, it just bind-mounts the host's docker socket inside the container, and the docker client talks to
by chuckadams 3y ago
docker-in-docker doesn't run a docker daemon in the container, it just bind-mounts the host's docker socket inside the container, and the docker client talks to that. Any containers you launch from within docker-in-docker are siblings, not nested.
- ekimekim 3y agoYou are mistaken. From https://hub.docker.com/_/docker https://hub.docker.com/_/docker: What is Docker in Docker? Although running Docker inside Docker is generally not recommended, there are some legitimate use cases, such as development of Docker itself. ...If you are still convinced that you need Docker-in-Docker and not just access to a container's host Docker server, then read on. This makes it pretty clear that it's a different copy of the docker daemon (which eg. allows you to test changes to docker itself) and specifically says it's different from "just access to a container's host Docker server".
- chuckadams 3y agoYikes, I stand corrected. Thanks for setting me straight.
- deleted 3y ago[deleted]