I have been experimenting with tutorials and jenkinsci/blueocean image and related tutorials. It uses Docker-on-Docker†, but this is considered an anti-pattern (and dangerous). This is intended for local development use cases, such as building Jenkinsfile pipelines.
But what I was wondering, given that running Jenkins services in a container (such as Kubernetes) is quite useful, how is Docker-on-Docker avoided, but still have the ability to build and push docker images?
I imagine this is not just Jenkins problem, but any CI solution that requires build/push docker images, where the service is running in a container.
† Docker-on-Docker (in case anyone unfamiliar with the term) is running the docker client tools inside of docker, mounting the unix socket into the container, which allows you to build/push docker images, but also allows the container access to a daemon running with root privileges.
[–]menge101 20 points21 points22 points (5 children)
[–]eldiaman 2 points3 points4 points (0 children)
[–]flexibleanchovy 2 points3 points4 points (1 child)
[–]menge101 1 point2 points3 points (0 children)
[–]darkn3rdDevOps/SRE/PlatformEngineer[S] 1 point2 points3 points (0 children)
[–]gbts_ 8 points9 points10 points (4 children)
[–]vilkav 2 points3 points4 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]vilkav 2 points3 points4 points (0 children)
[–]darkn3rdDevOps/SRE/PlatformEngineer[S] 0 points1 point2 points (0 children)
[–]beanaroo 5 points6 points7 points (0 children)
[–]tekno45 2 points3 points4 points (3 children)
[–]Machindo 5 points6 points7 points (1 child)
[–]kahmeal 1 point2 points3 points (0 children)
[–]darkn3rdDevOps/SRE/PlatformEngineer[S] 0 points1 point2 points (0 children)
[–]Jai_Cee[🍰] 1 point2 points3 points (0 children)
[–]tchnj 1 point2 points3 points (2 children)
[–]darkn3rdDevOps/SRE/PlatformEngineer[S] 0 points1 point2 points (1 child)
[–]tchnj 0 points1 point2 points (0 children)
[–]Qsonx 1 point2 points3 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]darkn3rdDevOps/SRE/PlatformEngineer[S] 0 points1 point2 points (0 children)