-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Azure Container Registry #425
Comments
Hey @kreeftd , we actually don't have any special support for Azure in the kaniko image (that flag is added by a dependency, and is meant to be hidden, but I guess that isn't actually working) You could try mounting in the azure credential helper along with your credentials, which should work. If you want to add the credential helper to the kaniko image, PRs are welcome! |
@kreeftd I'm pushing to an azure registry. Using GitLab's docs as an example, I'm doing the following
Seems to be ok so far in testing |
@priyawadhwa thank you for your comment.
It might have something to do with our Kubernetes cluster or GitLab instance. I believe the issue is not in kaniko as you confirmed it should work with said environment variables. Therefore closing issue. |
So it turns out we did not setup our environment variables in GitLab correctly. For the Azure Container Registry you should not add $AZURE_REGISTRY = 'example.azurecr.io' Also note that none of the environment variables in GitLab can be set to privileged. They will result in the following error: |
I have trouble pushing to ACR: sample Dockefile:
sample script docker run \
-v /pathto/docker_config.json:/root/.docker/config.json \
-v /pathto/myapp:/app \
gcr.io/kaniko-project/executor \
--dockerfile=Dockerfile \
--context=/app \
--destination=something.azurecr.io/bla \
--cache=true \
--verbosity debug output:
|
Apparently |
Hi @obeleh,
|
We have problems setting up kaniko together with our GitLab Runner (11.3.1): we are not able to push our Docker builds to our private Azure Container Registry. We believe the issue is in the authentication process. After some debugging, we found that there is a flag for /kaniko/executor:
--azure-container-registry-config
. However, we are not able to find what file is expected, nor can we find any documentation on this specific flag. Could anyone point us into the right direction? Maybe post an example Azure container registry config file? We appreciate your time and effort. FYI building Docker images works fine, kaniko rocks.The text was updated successfully, but these errors were encountered: