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
# 进入Jenkins容器内(5c8 为容器id)
docker exec -it -u root 5c8 bash
# 修改docker权限
chmod 777 /var/run/docker.sock