docker- in -docker的作者建议在此博客中不要将此图像用于CI目的:jpetazzo/Using Docker-in-Docker for your CI or testing environment? Think twice
为什么Jenkins在Jenkins用户手册(安装部分)中使用docker- in -docker,请参阅以下链接:Installing Jenkins(you can see it in step 4)
为什么他们不使用卷来使用docker守护进程,如下所示:
--volume /var/run/docker.sock:/var/run/docker.sock使用docker-in-docker有什么特别的原因吗?
如果你同意应该在不使用docker-in-docker的情况下完成它,请告诉我怎么做,实际上我已经尝试过了,但没有成功,我在这里遇到了另一个问题:How to find out which user is accessing /var/run/docker.sock that will cause permission denied error
发布于 2020-08-01 08:51:04
@tashkhisi -正如已经在https://stackoverflow.com/a/63200614/8723275中提到的,这取决于您尝试使用的是哪个Jenkins镜像。以防你要使用jenkinsci/bleocean -它已经在管道中有docker了,但你可以自己做。如果您更喜欢使用jenkins/jenkins镜像-您可以在following discussion中找到答案。一种可能的解决方案是构建自己的Jenkins镜像,并在镜像中动态安装所有需要的插件。
https://stackoverflow.com/questions/63077805
复制相似问题