No such image [...] when deploying a container based on a template, from a custom registry #12983
Unanswered
ericmorand
asked this question in
Help
Replies: 1 comment 1 reply
-
|
@ericmorand Does this work for you if you deploy it directly as a Stack rather than a template? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ask a Question!
I'm not sure if this is a bug or a misconfiguration of my template, but I can't seem to be able to have an image hosted in a custom registry pulled automatically when deploying a container from a template. I always end up having the "No such image [...]" error triggered when I try to deploy my container.
Here is the relevant information from the
templates.jsonfile that is used by Portainer to gather the list of templates:{ "version": "3", "templates": [ { "type": 1, "title": "Foo Bar", "description": "Foo Bar", "categories": [ "foo", "bar" ], "platform": "linux", "registry": "registry-gitlab.example.com", "image": "registry-gitlab.example.com/eric_morand/foo-bar/foo-bar:latest" } ] }The custom registry
registry-gitlab.example.comis confirmed to be working:And pulling the image manually from the Images UI also works perfectly:
Which confirms that the registry is setup properly - i.e. with the proper URLs, username and access token.
Which makes me think that, either:
registryandimageURLs are not correctI've tried multiple combinations of
registryandimagevalues, without any success.If someone has an idea, I would love to hear about it.
EDIT: After further investigation, it seems like Portainer is executing a HEAD request to the following URL to get the image manifest:
https://registry-gitlab.[...].com/v2/eric_morand/[...]/manifests/1.5.0
Which seems legit, except it returns a 403 which, I suspect, is because Portainer does not send the authorization header.
Beta Was this translation helpful? Give feedback.
All reactions