Can't access docker images with gitlab-runner (Docker executor)
My gitlab version is 10.0.4 running on centos 7.4 installed via repository, the runner is on another machine with same version of centos.
Runner machine setup looks like this:
➜ test gitlab-runner --version
Version: 11.0.0
Git revision: 5396d320
Git branch: 11-0-stable
GO version: go1.8.7
Built: 2018-06-22T11:01:11+00:00
OS/Arch: linux/amd64
➜ test docker info
Containers: 3
Running: 1
Paused: 0
Stopped: 2
Images: 25
Server Version: 18.03.1-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-693.21.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.4GiB
Name: localhost.localdomain
ID: M43S:2WGY:HU36:5UIX:2R3Y:VARU:KICP:R6IF:4MMF:ZBBA:7KRJ:YFUS
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
➜ test docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
fedora-test latest 22b08af72245 2 days ago 801MB
android latest 9230c7cd30b9 2 days ago 5.07GB
andoird-test latest 3d4d7f71266b 2 days ago 4.64GB
gitlab/gitlab-runner-helper x86_64-5396d320 84c112215960 2 days ago 46.4MB
ubuntu latest 113a43faa138 4 weeks ago 81.2MB
fedora latest cc510acfcd70 2 months ago 253MB
ubuntu <none> 452a96d81c30 2 months ago 79.6MB
portainer/portainer latest f6dd93561a5f 3 months ago 35MB
fedora-test and android images are built from a Dockerfile which I wrote (some basic packages to be included nothing fancy) ubuntu and fedora images are just pulled from dockerhub with docker pull. I have no issue to build and execute stuff inside either ubuntu image or fedora, but when I try to use my images that I have built I get error:
Running with gitlab-runner 11.0.0 (5396d320)
on portainer e2d9b4c0
Using Docker executor with image fedora-test:lastest ...
Pulling docker image fedora-test:lastest ...
ERROR: Job failed: Error response from daemon: pull access denied for fedora-test, repository does not exist or may require 'docker login'
Here is the output if I use ubuntu image:
Running with gitlab-runner 11.0.0 (5396d320)
on portainer e2d9b4c0
Using Docker executor with image ubuntu ...
Pulling docker image ubuntu ...
Using docker image sha256:113a43faa1382a7404681f1b9af2f0d70b182c569aab71db497e33fa59ed87e6 for ubuntu ...
Running on runner-e2d9b4c0-project-350-concurrent-0 via localhost.localdomain...
Fetching changes...
HEAD is now at 80113ca Update .gitlab-ci.yml
From http://xxx.xxxx
80113ca..7021e5c 3.1 -> origin/3.1
Checking out 7021e5c3 as 3.1...
Skipping Git submodules setup
$ ls
build.gradle
build.trigger
gradle
gradle.properties
gradlew
gradlew.bat
info
project.properties
settings.gradle
Job succeeded
Non of the images are private, if anyone can point me what might be an issue that would be greatly appreciated.