Skip to content
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

401 when pushing image to ECR - docker config location #290

Closed
brendanhatton opened this issue Aug 16, 2018 · 2 comments
Closed

401 when pushing image to ECR - docker config location #290

brendanhatton opened this issue Aug 16, 2018 · 2 comments
Labels
area/documentation For all bugs related to documentation kind/bug Something isn't working

Comments

@brendanhatton
Copy link

brendanhatton commented Aug 16, 2018

When I follow the instructions on the Kaniko page Pushing to Amazon ECR (using the gcr.io/kaniko-project/executor:debug image), I get an error

ERRO[0022] Failed to push to destination ....amazonaws.com/... 
ERRO[0022] unsupported status code 401; body: Not Authorized

The instructions currently say to mount the docker configmap to /root/.docker. I noticed that one of the environment variables in the image is DOCKER_CONFIG=/kaniko/.docker/ so when I mount the configmap to /kaniko/.docker, the credentials are detected and the push succeeds.

Is this just a documentation update?

@priyawadhwa
Copy link
Collaborator

Hey @brendanhatton , thanks for pointing this out! I think you're right and this is a documentation issue.

@priyawadhwa
Copy link
Collaborator

Made the documentation change in #306 , so I'll go ahead and close this issue. @brendanhatton please comment if you see this error again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation For all bugs related to documentation kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants