gitlab-runner 配合docker 构建自动化部署
搭建gitlab-ci 自动化部署 安装 gitlab ci runner curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.rpm.sh | sudo bash sudo yum install gitlab-ci-multi-runner -y 查看是否运行正常 gitlab-ci-multi-runner status gitlab-runner: Service is running! 设置Docker权限 为了能让gitlab-runner 能正确的执行docker命令,需要把gitlab-runner 用户添加到docker group里,然后重启docker和gitlab ci runner sudo usermod -aG docker gitlab-runner 如果遇到用户权限问题无法解决 可以赋予gitlab-runner用户root权限,具体操作可参考 https://www.cnblogs.com/asukayui/p/3839915.html 来源: oschina 链接: https://my.oschina.net/u/3628952/blog/2253888