Running Docker in Docker
It is sometimes useful to be able to launch a container that can launch Docker tasks itself. This is done by installing Docker in a Docker container (Docker in Docker). It also involves mounting the host’s Linux sockets in the Container. Docker CLI itself uses the Docker socket to communicate with the Docker Engine.
This socket is located at this location:
ls -l /var/run/docker.sock
This command returns:
lrwxr-xr-x 1 root daemon 63 10 nov 19:35 /var/run/docker.sock ->…