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

[FEATURE] : Add a config entry for docker push to point to a private registry. #7203

Closed
shankarj opened this issue Jul 23, 2014 · 1 comment

Comments

@shankarj
Copy link

After a long dig, I read in the documentation,

[UPDATE] : This is to "completely" implement a private registry. docker push and pull both pointing to a local registry. Thank you @unclejack for the clear explanation.

"It’s important to note that we’re using a domain containing a “.” here, i.e. localhost.domain. Docker looks for either a “.” (domain separator) or “:” (port separator) to learn that the first part of the repository name is a location and not a user name. If you just had localhost without either .localdomain or :5000 (either one would do) then Docker would believe that localhost is a username, as in localhost/ubuntu or samalba/hipache. It would then try to push to the default Central Registry. Having a dot or colon in the first part tells Docker that this name contains a hostname and that it should push to your specified location instead."

FEATURE : It would be great if by default, docker push could push to a private registry defined in the config file. If no private registry is set up, then docker could push to the main registry. This would really reduce the effort needed to tag images with the FQDN all the time.

@unclejack
Copy link
Contributor

@shankarj What you're asking for would break the global namespace.

Your Docker installation with this "private registry defined in the config file" would be incompatible with every other Docker installation out there. Running docker pull debian needs to pull from the same place on every Docker install.

A developer using Docker on their box will use debian, centos and ubuntu official images. Your hacked up Docker install would just serve your own versions of those images (if they're present) and this will break things.

You'll discover that this has been discussed already and that there's no intention to change this. Please don't open more issues on this topic because this isn't going to be implemented.

@moby moby locked and limited conversation to collaborators Jul 24, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants