I had a similar problem trying to install Docker inside a Bamboo Server image. To solve this:
- first remove the line: RUN docker run hello-world from your
Dockerfile - The simplest way is to just expose the Docker socket, by bind-mounting it with the
-vflag or mounting a volume usingDocker Compose:
docker run -v /var/run/docker.sock:/var/run/docker.sock ...