Following instructions from AWS:
$ aws ecr get-login
returns command
$ docker login -u AWS -p password -e none https://aws_account_id.dkr.ecr.us-east-1.amazonaws.com
However, on Windows (this works on Mac) I receive error when trying to pull.
$ docker pull aws_account_id.dkr.ecr.us-east-1.amazonaws.com/xxx
Using default tag: latest
Pulling repository aws_account_id.dkr.ecr.us-east-1.amazonaws.com/xxx
unauthorized: authentication required
I am using:
$ docker version
Client:
Version: 1.12.0-rc2
API version: 1.24
Go version: go1.6.2
Git commit: 906eacd
Built: Fri Jun 17 20:35:33 2016
OS/Arch: windows/amd64
Experimental: true
Server:
Version: 1.12.0-rc2
API version: 1.24
Go version: go1.6.2
Git commit: a7119de
Built: Wed Jun 29 10:03:33 2016
OS/Arch: linux/amd64
Experimental: true
I found that by removing https://
from returned command:
docker login -u AWS -p password -e none https://aws_account_id.dkr.ecr.us-east-1.amazonaws.com
to:
docker login -u AWS -p password -e none aws_account_id.dkr.ecr.us-east-1.amazonaws.com
Then it works...
This seems to relate to credstore on Windows.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.