用到了就随手记录下,方便以后查阅
Docker部署gitlab
docker run --detach --publish 8443:443 --publish 8080:80 --publish 2222:22 --name gitlab --restart unless-stopped -v /opt/gitlab/etc:/etc/gitlab -v /opt/gitlab/log:/var/log/gitlab -v /opt/gitlab/data:/var/opt/gitlab gitlab/gitlab-ce
gitlab runner 常见问题
gitlab runner 无权限
在runner执行过程中大多数是文件夹不存在,无权限。
sudo gitlab-runner uninstall # 删除gitlab-runner
gitlab-runner install --working-directory /home/gitlab-runner --user root # 安装并设置--user(设置为root)
sudo service gitlab-runner restart # 重启gitlab-runner
ps aux|grep gitlab-runner # 查看当前runner用户