Reputation: 9546
I'd like to use Docker-in-Docker however the --privileged gives blanket access to devices. Is there a way to run this using a combination of volumes and cap-add etc. instead?
Upvotes: 27
Views: 19202
Reputation: 10474
Unfortunately no, you must use the --privileged
flag to run Docker in Docker, you can take a look at the official announcement where they state this is one of the many purposes of the --privileged
flag.
Basically, you need more access to the host system devices to run docker than you get when running without --privileged
.
Upvotes: 17
Reputation: 4076
Yes. There are dind-rootless versions of docker image in docker hub.
https://hub.docker.com/_/docker
Upvotes: -4