cockpit-podman icon indicating copy to clipboard operation
cockpit-podman copied to clipboard

URL that goes into a container's console

Open paul-hammant opened this issue 1 year ago • 3 comments

Here I show /<container-name>/console typed onto the end of* a /podman URL as a suggestion as to where this feature could go:

image

  • were I to press enter on https://192.168.0.141:9090/podman/kind_nightingale/console today, I'd get a 404.

paul-hammant avatar Aug 18 '24 10:08 paul-hammant

We can't really support this unless we create "proper" detail pages for a containers like we do in cockpit-machines.

What we do support is filtering directly from the url so for your example you could go to https://127.0.0.2:9091/podman#/?name=kind_nightingale

jelly avatar Sep 05 '24 09:09 jelly

We have discussed adding detail pages to cockpit-podman, this would be a major re-design.

jelly avatar Feb 25 '25 18:02 jelly

If we implement this, the URL would be https://host:9090/podman#/<container-name>/console, note the extra #.

I think it would be feasible to have a dedicated console for a single container at that URL. This would be significantly easier to implement than trying to encode the expanded/tab-selection state of the current page in the URL. We don't need full-blown details pages.

The newish TerminalState of our own Terminal component is probably useful in this case, so that the console keeps its contents when switching between expanded and compressed version.

mvollmer avatar Oct 10 '25 09:10 mvollmer