copy-docker-image icon indicating copy to clipboard operation
copy-docker-image copied to clipboard

Not authorized

Open vishaldesai opened this issue 6 years ago • 2 comments

I can run aws commands from command line but getting following error for copy command.

C:\Users\Administrator\Downloads>copy-docker-image_windows_386.exe --srcURL https://hub.docker.com/r/full360/ --srcRepo sneaql --srcTag latest --destURL https://xxxxxxxx.dkr.ecr.us-east-1.amazonaws.com --destRepo vishalsneaql --destTag latest 2018/04/26 21:58:21 registry.ping url=https://hub.docker.com/r/full360/v2/ 2018/04/26 21:58:22 registry.ping url=https://hub.docker.com/r/full360/v2/ 2018/04/26 21:58:22 registry.ping url=https://xxxxx.dkr.ecr.us-east-1.amazonaws.com/v2/ Failed to establish a connection to the destination registry. Failed to create registry connection for https://xxxx.dkr.ecr.us-east-1.amazonaws.com. Get https://xxxxxx.dkr.ecr.us-east-1.amazonaws.com/v2/: http: non-successful response (status=401 body="Not Authorized\n")

vishaldesai avatar Apr 26 '18 22:04 vishaldesai

Can you confirm that your terminal can access that registry using the normal aws command line. For example, if you run

aws ecr describe-repositories

What is your output?

mdlavin avatar Apr 30 '18 18:04 mdlavin

C:\Users\Administrator>aws ecr describe-repositories { "repositories": [ { "registryId": "xxxx", "repositoryName": "vishalsneaql", "repositoryArn": "arn:aws:ecr:region:xxxxx:repository/vishalsneaql", "createdAt": 1525113057.0, "repositoryUri": "xxxx.dkr.ecr.us-east-1.amazonaws.com/vishalsneaql" } ] }

vishaldesai avatar Apr 30 '18 18:04 vishaldesai