解决gitlab-runner执行docker命令提示权限不足的
2018-10-19 本文已影响1人
Devid
see: https://docs.gitlab.com/ee/ci/docker/using_docker_build.html
- 将gitlab-runner用户添加到docker组
sudo usermod -aG docker gitlab-runner
- 验证是否生效:
sudo -u gitlab-runner -H docker info
see: https://docs.gitlab.com/ee/ci/docker/using_docker_build.html
sudo usermod -aG docker gitlab-runner
sudo -u gitlab-runner -H docker info