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 run
command in privileged mode, - sharing the
/var/run/docker.sock
socker with containers.
Is any similar option available for docker build
?