mdlavin / copy-docker-image

Copy a Docker image between registries without a full Docker installation
37 stars 16 forks source link

Not authorized #5

Open vishaldesai opened 6 years ago

vishaldesai commented 6 years ago

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")

mdlavin commented 6 years ago

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?

vishaldesai commented 6 years ago

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" } ] }