使用 jenkins 操作docker时,遇到
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock
将jenkins用户加入docker组
gpasswd -a jenkins docker
重启jenkins生效
systemctl restart jenkins
使用 jenkins 操作docker时,遇到
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock
将jenkins用户加入docker组
gpasswd -a jenkins docker
重启jenkins生效
systemctl restart jenkins