Unnable to pull docker image form private repository
Hello, I have problem with download image from private repository and authentication to repository. I try several scenarios to install and configure gitlab runner:
- (Variant a) https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/linux-repository.md
- (Variant b) https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/docker.md
I try:
- https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/configuration/advanced-configuration.md#using-a-private-docker-registry
- link my .docker/docker.conf to docker conteiner
And still nothing.
Error log:
Running with gitlab-ci-multi-runner 1.5.2 (76fdacd)
Using Docker executor with image ------------/docker/gradletestmachine ...
Pulling docker image -----------/docker/gradletestmachine ...
WARNING: Cannot pull the latest version of image -----/docker/gradletestmachine : API error (500): Get https://--------/v2/docker/gradletestmachine/manifests/latest: error parsing HTTP 403 response body: no error details found in HTTP response body: "{\"message\":\"forbidden\",\"status\":\"error\",\"http_status\":403}"
Docker:
root@orgb:/home# docker -v
Docker version 1.12.0, build 8eab29e
Conf for A. Variant:
root@orgb:/home# cd /etc/gitlab-runner/
root@orgb:/etc/gitlab-runner# cat config.toml
concurrent = 1
check_interval = 0
[[runners]]
name = "-------.pl"
url = "https://----------.pl/ci"
token = ""
executor = "docker"
[runners.docker]
tls_verify = false
image = "docker"
privileged = true
disable_cache = true
volumes = [
"/var/run/docker.sock:/var/run/docker.sock:ro",
"/root/.docker/config.json:/root/.docker/config.json:ro",
"/cache"
]
Variant B.
docker run -d --name gitlab-runner --restart always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /srv/gitlab-runner/config:/etc/gitlab-runner \
-v /root/.docker/config.json:/root/.docker/config.json \
gitlab/gitlab-runner
Gitlab Ci Version:
root@orgb:/etc/gitlab-runner# gitlab-runner --version
Version: 1.5.2
Git revision: 76fdacd
Git branch: 1-5-stable
GO version: go1.6.3
Built: Wed, 24 Aug 2016 13:35:10 +0000
OS/Arch: linux/amd64
root@orgb:/etc/gitlab-runner# gitlab-ci-multi-runner --version
Version: 1.5.2
Git revision: 76fdacd
Git branch: 1-5-stable
GO version: go1.6.3
Built: Wed, 24 Aug 2016 13:35:10 +0000
OS/Arch: linux/amd64