I am using GitLab CI to spin up a container that I created to test Splunk’s config before I push it out. I create my own container based off cents:latest and use the docker commit command to commit the image. I am running as gitlab-runner user when I do this, I can connect to this container interactively but when I put it in CI I get the following:
Running with gitlab-runner 12.2.0 (a987417a)
on Splunk Container nXd2x95Q
Using Docker executor with image splunk:latest ...
Pulling docker image gitlab/gitlab-runner-helper:x86_64-a987417a ...
Using docker image sha256:2ecc4cc715e33d4c56dab2915d9ce5729e81ebad789a971a01ef113b52f01aa9 for gitlab/gitlab-runner-helper:x86_64-a987417a ...
Pulling docker image splunk:latest ...
ERROR: Job failed: Error response from daemon: pull access denied for splunk, repository does not exist or may require 'docker login' (executor_docker.go:192:0s)
My gitlab-ci.yml file is as:
stages:
- btool check
- push files
Verify:
stage: btool check
image: splunk:latest
tags:
- docker_splunk
only:
- master
script:
- ls
I can spin up the centos:latest docker image without any issues, but cannot seem to connect to this image I created… What am I missing? Any help is much appreciated.
I am LOVING GitLab, it is just fun to use