Nevertheless I had the same problem I don't know why, but I successfully used the more long-winded auth mechanism described in the docs for get-authorization-tokenĪWS CLI and Docker versions: $ aws -versionĪws-cli/1.9.17 Python/2.7.6 Linux/3.16.0-38-generic botocore/1.3.17 ![]() See the documentation: Private Registry Authentication. This should have worked even without opening up the permissions. ![]() I guess the motto of the story is if you hit this error, make sure that the repository you are logging into matches the tag you have applied to the image. When I remove the environment variables everything works correctly. I failed to notice that the account numbers were different until I just went back now to try some of the proposed answers. So when I did aws ecr get-login it was returning a login for the wrong account. Even though I was using aws configure to set my credentials for the account where I had setup my repository the aws cli was actually using the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. So I had a bit of Homer Simpson D'Oh moment when I realized the root cause of my problem. I don't know how to begin to debug this since all the traffic is encrypted. Nothing changes the "no basic auth credentials" error. Just to make sure that wasn't an issue I set the registry to allow all users full access. I also made sure that the repository allowed that user to push to it. I made sure that the aws user had the correct permissions. ![]() Then I successfully login with those creds as follows: docker login -u AWS -p XXXX -e none WARNING: login credentials saved in /Users/ar/.docker/config.jsonīut when I try to push my image I get the following error: $ docker push #.com/image:latest I use aws ecr get-login -region us-east-1 to get the docker login creds. I'm using docker client Docker version 1.9.1, build a34a1d5. I'm trying to push a docker image to an Amazon ECR registry.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |