You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual behavior
Kaniko '/kaniko/.docker/config.json' not correctly passing credentials for private harbor container registry in GitLab CI/CD.
We have tested registry-map and registry-mirror flags interchangeably and the results are always the same: WARN[0000] Failed to retrieve image build from remapped registry registry1.website.com: unable to complete operation after 0 attempts, last error: GET https://registry1.website.com/v2/harbor/projects/3/repositories/library/build/manifests/latest: UNAUTHORIZED: project harbor not found: project harbor not found. Will try with the next registry, or fallback to the original registry.
The credentials have been validated to log into the registry1.website.com docker registry locally - validating the credentials are fine: H:\>docker login registry1.website.com Username: USER_NAME Password: Login Succeeded
The Dockerfile begins with: FROM registry1.website.com/project/opensource/apache/tomcat9-openjdk17:latest
Expected behavior
I expect the '/kaniko/.docker/config.json' file to pass the appropriate credentials to kaniko to use when pulling from a private harbor registry.
Triage Notes for the Maintainers
Description
Yes/No
Please check if this a new feature you are proposing
Please check if the build works in docker but not in kaniko
Please check if this error is seen when you use --cache flag
Please check if your dockerfile is a multistage dockerfile
The text was updated successfully, but these errors were encountered:
Actual behavior
Kaniko '/kaniko/.docker/config.json' not correctly passing credentials for private harbor container registry in GitLab CI/CD.
We have tested
registry-map
andregistry-mirror
flags interchangeably and the results are always the same:WARN[0000] Failed to retrieve image build from remapped registry registry1.website.com: unable to complete operation after 0 attempts, last error: GET https://registry1.website.com/v2/harbor/projects/3/repositories/library/build/manifests/latest: UNAUTHORIZED: project harbor not found: project harbor not found. Will try with the next registry, or fallback to the original registry.
The credentials have been validated to log into the registry1.website.com docker registry locally - validating the credentials are fine:
H:\>docker login registry1.website.com Username: USER_NAME Password: Login Succeeded
The Dockerfile begins with:
FROM registry1.website.com/project/opensource/apache/tomcat9-openjdk17:latest
Expected behavior
I expect the '/kaniko/.docker/config.json' file to pass the appropriate credentials to kaniko to use when pulling from a private harbor registry.
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: