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

Push to private repo using ~/.docker/config.json fails #368

Closed
rodlogic opened this issue Jan 28, 2016 · 3 comments
Closed

Push to private repo using ~/.docker/config.json fails #368

rodlogic opened this issue Jan 28, 2016 · 3 comments

Comments

@rodlogic
Copy link

This is the error:

INFO] --- docker-maven-plugin:0.13.8:push (default-cli) @ my-image ---
[INFO] DOCKER> ... The push refers to a repository [295240448163.dkr.ecr.us-east-1.amazonaws.com/database-connector] (len: 1)
[INFO] DOCKER> ... 93f8c73a5e63 Preparing
[ERROR] DOCKER> Post https://295240448163.dkr.ecr.us-east-1.amazonaws.com/v2/my-image/blobs/uploads/: no basic auth credentials

I have performed the docker login and I am able to push using docker push successfully.

@rhuss
Copy link
Collaborator

rhuss commented Jan 28, 2016

Could you please just have a quick look into ~/.docker/config.json and check whether you registry is mentioned there with an https:// prefix or only as host:port ?

If the former, than probably this issue applies which will be fixed in the next release.

@rodlogic
Copy link
Author

It does:

"auths": {
                "https://295240448163.dkr.ecr.us-east-1.amazonaws.com": {

I have also confirmed that the latest 0.14.0-SNAPSHOT works as expected.

Do you have a target date for the 0.14 release?

@rhuss
Copy link
Collaborator

rhuss commented Jan 28, 2016

good to know that it works for you :) /wrt to a release, there is no ETA yet. Could be that I'll do a 0.13.9 before tackling 0.14.0 with support for docker compose config format.

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