解决gitlab runner 推送 harbor需要认证问题
在gitlab runner服务器上登陆
docker login xl.image:5000 -u admin -p Harbor12345
修改gitlab runner 配置文件
vim /etc/gitlab-runner/config.toml volumes处添加"/root/.docker/:/root/.docker/",将gitlab runner机器登陆的token挂载到容器中
volumes = ["/cache", "/var/run/docker.sock:/var/run/docker.sock", "/data/allure-reports/:/data/allure-reports/", "/root/.docker/:/root/.docker/"]
重启runner
gitlab-runner restart