My Dockerfile builds a library whose build script uses the docker build command internally. Such nesting does not seem supported: Ubuntu 18.04 image fails with docker: command not found and installing Docker changes the error message to /tmp/docker.sock: no such file or directory.
The docker run command offers several ways to nest containers:
- running the outermost
docker runcommand in privileged mode, - sharing the
/var/run/docker.socksocker with containers.
Is any similar option available for docker build?