-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Extra Path Added to Docker Image Name After App Creation #6570
Comments
@csrwng when you say "we", is this common code new-app is calling, or is new-app doing this? |
common code new-app is calling in the registry client |
Has the issue here been identified? This is a fairly big blocker for our testing of Origin. |
@stevenpall can you explain why this is a blocker for you? You can work around it by simply adding a namespace to your docker tagging process, which you should probably be doing anyway. |
@bparees I suppose that would be possible, though I'm confused as to why a namespace (I'm assuming you mean the I also haven't really seen that convention before; typically an image name would consist of |
@stevenpall this is because of required behavior when interacting with certain images on the Docker Hub. If you try to do something like It looks like this maybe should only apply to images coming from the Hub. Perhaps we could update our code to only prefix with library when the registry is the Hub. WDYT @smarterclayton? |
There were several changes recently that stopped changing the user provided value (using docker image reference .Exact() instead of String()). I expect most of that will be fixed in 1.1.1. |
@smarterclayton where were those changes made? (trying to understand if new-app needs to be changing, or it's going to pick up that change for free) |
new-app was what was changed (at some point recently) On Wed, Jan 13, 2016 at 10:04 AM, Ben Parees notifications@github.com
|
New-app calls the imapi.ParseDockerImageRef function: |
Sorry, yes, for that we need to have the fix to stop setting library, and On Wed, Jan 13, 2016 at 10:50 AM, Cesar Wong notifications@github.com
|
@smarterclayton sorry, still not following at which point in the code we want to fix this. is https://github.com/openshift/origin/blob/master/pkg/image/api/helper.go#L64 going to be updated to not set library? If so, by whom and when? |
After running
new-app
with a Docker image as the parameter, the app gets created, but deployment fails due to the Docker image name being incorrect./library
is added to the path, changing an image name frommy.registry.com/test
tomy.registry.com/library/test
. The deployment fails as a result since the latter image does not exist on the remote registry.I thought this might be the same issue as #6516, but the problem there was that the private registry required authentication (mine does not). I should note that I'm using the integrated Docker image (https://hub.docker.com/r/openshift/origin/) for this testing.
The text was updated successfully, but these errors were encountered: