DEV Community

Discussion on: Docker Security Best-Practices

Collapse
 
flchs profile image
François Lachèse

Thanks you Peter for this article.

I completely agree with you about not letting any container access the docker socket.

But what is the alternative ? The Jenkins example is very pertinent and the only alternative I can think of is running a Docker in Docker instance.

But then, on the official docker in docker image page you can find a link to an article from Jérôme Petazzoni in which he recommends to use the socket binding method for Jenkins over Docker in Docker.

I would be glad to know more details about what are your recommendations regarding Jenkins running Docker commands and security.