Gitlab runner with docker executor getting docker login errors

I am trying to setup CI for my project. My project is hosted on community server 10.7. I am trying to use gitlab-runner with docker as executor. I have done docker login on my runner’s host machine so that its private repo’s credential can be picked up. I can do direct pull using docker pull on host machine. But with docker executor it fails. I have copied .docker folder to gitlab-runner home folder also, still not success.

My runner looks something like this

name = “Docker Runner "
token = “”
executor = “docker”
tls_verify = false
image = “golang”
privileged = false
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = [”/cache"]
shm_size = 0

My looks like this
image: <local_repo_host>//<image_name>:<image_tag>


  • build
  • test

stage: build
- glide install

dummy test:
stage: test
- ls
- cd cnc
- go test -v

Error: ERROR: Job failed: Error response from daemon: pull access denied for <image_path>, repository does not exist or may require ‘docker login’ (executor_docker.go:175:0s)

You may need to access docker hub (or wherever you’re hosting your docker image) via a login. Sometimes those docker hub login credentials are stored on local disk (which can be a security issue) but that usually only happens once you’ve done a docker login to the docker hub in my experience.