I’m using Gitlab CI to pre-build my container and then run my tasks within that container. I have had this working in the past, but today, my build server was replaced (automated rebuild) and am having an issue that I can’t seem to track down. I’ve included everything I could imagine being relevant. Any suggestions would be appreciated!
The error message:
Running with gitlab-ci-multi-runner 1.8.1 (a2efdd4)
Using Docker executor with image tma-test ...
Using locally found image version with exactly the same ID
Pulling docker image tma-test ...
ERROR: Build failed: Error: image library/tma-test:latest not found
.gitlab-ci.yml snippet:
build-test:
stage: prepare
script:
- docker build -t tma-test --build-arg BUNDLE_WITHOUT="" --build-arg RAILS_ENV=development .
tags:
- docker
debug:
stage: analyze
script:
- docker images
- docker info
debug-container:
stage: analyze
script:
- docker images
- docker info
tags:
- docker
rubocop:
stage: analyze
script:
- bundle exec rubocop
image: tma-test
gitlab multi-runner config.toml for the docker tagged runner
[[runners]]
name = "docker-runner-build"
url = "https://gitlab.example.com/ci"
token = "MY_TOKEN"
executor = "docker"
[runners.docker]
tls_verify = false
image = "private-repository.com/travel-deploy:latest"
privileged = false
disable_cache = false
volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/cache"]
[runners.cache]
docker images
snippet on gitlab runner as well as from both debug tasks in gitlab ci config
root@build:/etc/gitlab-runner$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
tma-test latest 41d679153ef8 8 minutes ago 274.4 MB