Describe your question in as much detail as possible:
Using the docker executor w/ DOCKER_AUTH_CONFIG as a pipeline variable (Using Docker images | GitLab)
Docker auth token expires and causes the pipeline to fail with this error:
"Using Docker executor with image privateimage:v1 ERROR: Preparation failed: Error response from daemon: Head https://myprivateregistry.azurecr.us/v1/myimagename/manifests/1.0.1: unauthorized authentication required (docker.go:143:0s)
-
What are you seeing, and how does that differ from what you expect to see?
I’m able to solve the error by logging into my private registry and copying the docker configuration into my DOCKER_AUTH_CONFIG variable. -
What version are you on? Are you using self-managed or GitLab.com?
Self-managed Gitlab. Using docker executor
Config.toml:
[[runners]]
name = "docker"
url = "https://gitlab.mysite.com"
token = "HHsjdjjcjckdjkss"
executor = "docker"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.azure]
[runners.docker]
tls_verify = false
image = "ruby:2.7"
privileged = false
disable_cache = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache"]
shm_size = 0
- GitLab (Hint:
/help
): - Runner (Hint:
/admin/runners
):
-
Add the CI configuration from
.gitlab-ci.yml
and other configuration if relevant (e.g. docker-compose.yml) -
What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
Thanks for taking the time to be thorough in your request, it really helps!