gitlab ci 配置的runner 在使用本地commit(未push)镜像时 发生异常
ERROR: Job failed: Error response from daemon: pull access denied for xxx, repository does not exist or may require 'docker login' (executor_docker.go:168:2s)
问题: 默认设置pull_policy="always", 意味着gitlab-runner每次都要去docker中央仓库拉image关键字指明的镜像
解决: 设置 pull_policy="if-not-present" 即本地不存在 则去拉取
参考:https://www.jianshu.com/p/2b7e73b0a096