-
Notifications
You must be signed in to change notification settings - Fork 35
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
image:push
to private registries is broken when using hostname/repo
#6
Comments
Personally I think it would be most useful as a parameter that can be carried into the build via environment variable. I've always been a bit dissatisfied having to include a hostname (of a registry host) in the namespace declaration of an image. |
I suppose if
|
That or if there was some way in the tags field to access the image name so you could do something like:
I would like to be able to tag an image locally with a name, then prepend the private registry it belongs to later via an alias command that applies all my tags. |
Right now I'm not sure about |
I've actually been evaluating dobi to include as part of our CI pipeline with Docker containers, and this is a big need. I've attempted a setup like this for a ruby app I maintain:
Running Here's what I get using dobi with this project:
I've tried some thing like setting mounts as |
@jzakrzeski
It splits by slashes. I would try |
I thought I had this fixed in version 0.7. Are you using a recent On Nov 2, 2016 6:47 PM, "cesco" notifications@github.com wrote:
|
@dnephin Tried that, blows up as invalid repository/tag:
In our case, yes, we use the convention: my.private.registry.net/{repository}/{service}:{short-sha} Our current process involves doing "cattle-prod" is done a bit differently (probably mistakenly), as you can see, with just the repository name followed by a version tag. I just tried this with: I do want to plus the variable interpolation in the |
@dnephin this is definetly a bug, it does not happen on docker's splitHostname. Docker's code also breaks when using http syntax |
FWIW, my registry is https and works flawlessly with I agree that this is a bug. Docker supports it well even using |
image:push
work with private registries?image:push
to private registries is broken
Ok, we definitely need to fix this bug. What I'm not sure about is how it's able to tell the difference between say: Maybe it makes some assumptions about the first part of the name before the slash? Maybe if it finds a I hope to have some time this weekend to get a fix out. |
image:push
to private registries is brokenimage:push
to private registries is broken when using hostname/repo
It looks like I missed an important part of |
Fix in #54 |
I believe you should be able to push to a private registry by using the full name of the image that includes the host/port/path to the registry.
dobi
supports the same auth config as the docker client, so authentication should work as well.I need to test it out to confirm.
cc @jmmills (let's move the discussion here, out of docker/compose#1126)
The text was updated successfully, but these errors were encountered: