docker in docker? https://itnext.io/docker-in-docker-521958d34efd https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/
https://itnext.io/docker-in-docker-521958d34efd
https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/
https://stackoverflow.com/questions/44451859/how-to-install-docker-in-docker-container
https://github.com/jpetazzo/dind
Is it possible for an xxx job to build a docker image? Since an xx job must be run in a container, I would have to use docker-in-docker. I see two ways to do it on a machine I have control over:
docker run -ti -v /var/run/docker.sock:/var/run/docker.sock docker
This one reuses local Docker daemon.
docker run --privileged -d docker:dind
This one runs docker-in-docker.Both ways seem to be incompatible with xxx since I cannot use
-v
or --privileged
options. Is there any other way to do this?