-
Notifications
You must be signed in to change notification settings - Fork 90
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
The create container dialog should accept a full "container url" #1220
Comments
Sounds good. I think we did talk about this at once point in time (or I could be misremembering). Suggestions would go away (as it knows there's a host) and it just uses the specified container. In other words: no autocomplete dropdown. If there's a way to know if a container exists at the URL or not, we should show an error as helper text under the form when it doesn't. (Something like HTTP HEAD if there isn't an API for checking if it exists.) If it's fine, we could have a green checkmark circle icon and say something like "Valid container location" as helper text under the entry. If it takes a second or more, we should have a spinner. |
I believe we talked about it during the re-design of the "Create image dialog" but never came around implementing it. |
This issue is a bit tricky, I don't think podman has a way to detect if an remote image exists without pulling it. Which we could do in the background but that feels a bit irky. Check if an image exists fails, but we can use this if it's already pulled. Then it returns a 204. So that's one case we should handle.
|
Seems we can use something similiar to https://samanpavel.medium.com/three-ways-to-check-a-docker-image-exists-in-registry-649eff4aef39 And using the API, it is a bit slow so probably requires a spinner somewhere?
So to sum it up:
|
Hi, I +1 with this, currently, we can't pull ghcr.io's from Cockpit, is there any ETA on this ? |
Oh well I ended up making a docker-compose.yml and start it with podman-compose, I guess this was an easier solution
|
@podhorsky-ksj, @bc1bb: BTW, there's |
I know, I used it at the beginning. I like quadlet files, because of execstartpre/execstartpost, auto updates of containers, dependencies between containers. But I don't like you are not able to disable container from start, like you can on systemd unit files. Once quadlet file is in exact location, it will be run on startup. |
fixes: cockpit-project#1220 Add support to pull images from registries which do not support search API.
fixes: cockpit-project#1220 Add support to pull images from registries which do not support search API.
fixes: cockpit-project#1220 Add support to pull images from registries which do not support search API.
fixes: cockpit-project#1220 Add support to pull images from registries which do not support search API.
fixes: #1220 Add support to pull images from registries which do not support search API.
Some registries do not support searching as this is not a mandatory feature, as we build our "create container" dialog around searching we should allow users to input a full container url for example
ghcr.io/github/pages-gem
.This now fails and shows an ugly error:
Reproducer:
Image
input:ghcr.io/github/pages-gem
Proposed solution
When a user provides a full container url, try to not search or if that's too complicated and search fails show a warning not an error. Also try to not show the dropdown with "no images found" as that is rather confusing.
Alternatively we need to make our
download new image dialog
prominent but to me that feels like adding some ducktape and working around the issue.Related to: #819
https://issues.redhat.com/browse/RHEL-13022
The text was updated successfully, but these errors were encountered: