Closed defender closed 8 years ago
It seems like that might work, but I haven't tried it. I was following the pattern for docker-in-docker suggested by Jérôme Petazzoni (https://blog.docker.com/2013/09/docker-can-now-run-within-docker/), because I wanted to start from something known to work and then layer the transparent proxying on top of that. If you can get it to work without fully encapsulating the inner docker, that might be useful to some people - feel free to fork and modify!
A few more things about docker-in-docker:
docker build
steps that required the proxy server (not just docker run
)
Hi
First of all this is a great solution, my question is why do you need another instance of docker why cant you use external docker docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) –v /lib64/libdevmapper.so.1.02:/lib/x86_64-linux-gnu/libdevmapper.so.1.02 -v /lib64/libudev.so.0.5.1:/lib/x86_64-linux-gnu/libudev.so.0.5.1 --privileged , this way you can
Thanks