docker 下jenkens 打包出现Got permission denied while trying to connect to the Docker daemon socket at uni

Posted printertool

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker 下jenkens 打包出现Got permission denied while trying to connect to the Docker daemon socket at uni相关的知识,希望对你有一定的参考价值。

# 进入Jenkins容器内(5c8 为容器id)

docker exec -it -u root 5c8 bash

# 修改docker权限

chmod 777 /var/run/docker.sock

以上是关于docker 下jenkens 打包出现Got permission denied while trying to connect to the Docker daemon socket at uni的主要内容,如果未能解决你的问题,请参考以下文章

jenkens docker启动

jenkens安装教程

亲测有效运行docker ps 出现Got permission denied问题的解决方案

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.

问题解决Got permission denied while trying to connect to the Docker daemon socket at 。。。

解决Docker Got permission denied问题