-
Notifications
You must be signed in to change notification settings - Fork 24
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
'invalid image' when trying to use a private registry image #68
Comments
Hi @camjackson normally private registries are supported, but if I had to guess it's likely that the port number or hierarchical org-name/app-name is throwing off cage. We'll take a look at it. |
Does
This was based on a earlier version of the |
Here's a list of test cases showing the syntax we definitely support, from further down in the same file:
|
Ahhh, yeah that explains it. The registry is at So no, it's not a valid domain name. However, I just tried it in a regular old compose file, and docker-compose will quite happily start up a container from that image name. I was going to have a go at putting a PR together for this, but cargo build gives me this (totally understand if you're not interested in providing support for my build environment, but thought you might be interested to know 😄):
|
Never mind, it was just an issue with openssl header locations on MacOS. I've fixed it now. Would you be open to a PR that would allow a registry host like |
FYI, I'm just going to work around this for now by changing my fake registry host to be something like |
Oh, no problem! If anybody figures out how to write a regex that matches whatever the latest version of |
I'm getting an error like this (data somewhat sanitised):
Config snippet:
It's definitely a valid image name though. I can do
docker run my-private-registry:5000/my-org-name/my-app-name
and it works just fine. Looks like a case of overly-strict image name validation?If that's the case, it seems that Cage is not compatible with private docker registries. Which would suck, because so far I'm really loving what Cage can do!
The text was updated successfully, but these errors were encountered: