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.sh, ability to push to ogranization namespace #63

Closed
soredake opened this issue Feb 2, 2017 · 4 comments
Closed

push.sh, ability to push to ogranization namespace #63

soredake opened this issue Feb 2, 2017 · 4 comments
Assignees
Labels

Comments

@soredake
Copy link
Contributor

soredake commented Feb 2, 2017

I've tried this two:

> ~/git/gentoo-bb $ ./push.sh fdsfgsglibc
pushing to docker.io/u/fdsfgsglibc
Password:
Email: fdsfgs@krutt.org
Error response from daemon: Wrong login/password, please try again
> ~/git/gentoo-bb $ ./push.sh -h docker.io/u fdsfgsglibc                                                          pushing to docker.io/u
docker tag 339fff3cc752 docker.io/u/fdsfgsglibc/bash
pushing docker.io/u/fdsfgsglibc/bash
The push refers to a repository [docker.io/u/fdsfgsglibc/bash]
4b951e8e2f64: Preparing
898928f11aed: Preparing
ba80a6000159: Preparing
73e778e20186: Preparing
79508c00b87a: Preparing
06cbf8a0e45a: Waiting
c0e5f79a3284: Waiting
f554530344c2: Waiting
unauthorized: authentication required

Plain docker push fdsfgsglibc/bash works.

@soredake soredake changed the title push.sh, ability to push to ogranizations push.sh, ability to push to ogranization namespace Feb 3, 2017
@edannenberg
Copy link
Owner

edannenberg commented Feb 4, 2017

Hmm this should work, you might need to put a push.conf file in your namespace folder with dockerhub user/pw, you probably want to .gitignore that file. ;) Will double check tomorrow.

@edannenberg edannenberg self-assigned this Feb 4, 2017
@soredake
Copy link
Contributor Author

soredake commented Feb 5, 2017

DOCKER_LOGIN=fdsfgs ./push.sh fdsfgsglibc worked
https://github.com/edannenberg/gentoo-bb/blob/master/push.sh#L60 tries to login ${NAMESPACE} as user, that caused fail.
Can you pls mention this in README?

@edannenberg
Copy link
Owner

edannenberg commented Feb 5, 2017

Ah yes, sorry couldn't look what my push.conf looks like yesterday. It should look something like this:

#DOCKER_LOGIN=gentoobb
DOCKER_PW=*********
DOCKER_EMAIL=foo@bar.net

If namespace does not match Dockerhub account name you have to set DOCKER_LOGIN, IIRC DOCKER_EMAIL is no longer required.

Will leave this open until it's properly documented.

@edannenberg
Copy link
Owner

Documented.

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

No branches or pull requests

2 participants