docker 下jenkens 打包出现Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock错误解决方法

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

docker exec -it -u root 5c8 bash

# 修改docker权限

chmod 777 /var/run/docker.sock

posted @ 2020-05-27 14:32  printertool  阅读(275)  评论(0编辑  收藏  举报