docker-gitlab-ci-multi-runner
docker-gitlab-ci-multi-runner copied to clipboard
Docker executor cannot pull image from private registry
I use gitlab-ci-multi-runner:1.0.4, here is code snippet of my docker-compose.yml
:
GitlabCIMultiRunner:
image: sameersbn/gitlab-ci-multi-runner:1.0.4
volumes:
# share Docker unix sock
- /var/run/docker.sock:/var/run/docker.sock
# share docker config for using docker registry
- ~/.docker:/root/.docker
I get this problem when doing ci build, Docker executor cannot pull image from private registry:
Using Docker executor with image docker.163.com/pyenv-common:latest ...
Pulling docker image my-private-registry/pyenv-common:latest ...
WARNING: Cannot pull the latest version of image docker.163.com/pyenv-common:latest : Error: image pyenv-common:latest not found
WARNING: Locally found image will be used instead.
Running on runner-b0913476-project-2-concurrent-0 via 5f6196c6c24c...
I change the shared docker config folder to:
- ~/.docker:/home/gitlab_ci_multi_runner/.docker
but this still not work.
And I change to use the GitLab official Runner image, it work.
image: gitlab/gitlab-runner:latest
I want to know what is the difference and how to make this gitlab-ci-multi-runner work as the offical one.