Not find local docker images in v1.8.1
Summary
In the last version (v1.8.1) , if the .gitlab-ci.yml
contains a local docker image, raises error.
Steps to reproduce
- Create docker container
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 \
gitlab/gitlab-runner:latest
- Register docker
docker exec -it gitlab-runner gitlab-runner register
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
http://my awesome gitlab
Please enter the gitlab-ci token for this runner:
token
Please enter the gitlab-ci description for this runner:
[7257483cf049]: [...]
Please enter the gitlab-ci tags for this runner (comma separated):
[...]
Registering runner... succeeded runner=A9MzZy7Q
Please enter the executor: virtualbox, docker-ssh, parallels, shell, docker-ssh+machine, kubernetes, docker, ssh, docker+machine:
docker
Please enter the default Docker image (eg. ruby:2.1):
alpine
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!
- Commit in configured repository
Running with gitlab-ci-multi-runner 1.8.1 (a2efdd4)
Using Docker executor with image ufc-sti/si3-build ...
Using locally found image version with exactly the same ID
Pulling docker image ufc-sti/si3-build ...
ERROR: Build failed: Error: image ufc-sti/si3-build:latest not found
Actual behavior
Does not work.
Expected behavior
Find and use local images like gitlab-ci-multi-runner 1.7.1 (f896af7d):
Running with gitlab-ci-multi-runner 1.7.1 (f896af7)
Using Docker executor with image ufc-sti/si3-build ...
Pulling docker image ufc-sti/si3-build ...
WARNING: Cannot pull the latest version of image ufc-sti/si3-build : Error: image ufc-sti/si3-build:latest not found
WARNING: Locally found image will be used instead.
Running on runner-1823c944-project-10-concurrent-0 via 7257483cf049...
Cloning repository...
[...]
Relevant logs and/or screenshots
.gitlab-ci.yml
image: ufc-sti/si3-build
variables:
ARQUIVO_BUILD: [...]
job:
script:
- cd $CI_PROJECT_DIR/[...]
- ${ANT_HOME}/bin/ant -file $ARQUIVO_BUILD -DREMOTEHOSTS_SISTEMAS=[...] set-remotehosts buildall
Environment description
Gitlab in Virtual machine and runner in docker container
Used GitLab Runner version
Running with gitlab-ci-multi-runner 1.8.1 (a2efdd47)