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

Not authorized #5

Open
vishaldesai opened this issue Apr 26, 2018 · 2 comments
Open

Not authorized #5

vishaldesai opened this issue Apr 26, 2018 · 2 comments

Comments

@vishaldesai
Copy link

vishaldesai commented Apr 26, 2018

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
Copy link
Owner

mdlavin commented Apr 30, 2018

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants