-
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
Clone or Copy feature is missing #363
Comments
Interesting idea, haven't seen it before :) |
Hi marusak, Here an example how it is handled by RancherOS which I currently use as main system for container |
I see, so it would only open
|
Portainer also allow to edit existing containers. It opens a modal with existing data and at the bottom the button says "Duplicate container" to make it clear it won't be the same as it is only copying the config data (volumes, ports, env, etc) |
We have a "Recreate" action in the menus of the redesign @ cockpit-project/cockpit#16059 (comment) and I had it at the bottom of my notes @ cockpit-project/cockpit#16059 (comment). @marusak, @jelly, and I have talked about such a feature recently too in recent a video call and in IRC a few times (before and since). Recreating a container could cover these cases:
(You would be able to edit settings with a fresh image; these aren't mutually exclusive. Likewise, you could want to create a similar container with a new version of the image to test a staging version on another port.) We haven't settled on what to call it; as it's not really editing (as the original would be thrown away), and if you're cloning it it's not recreating it (as both exist). It basically comes down to having a create container dialog that's prefilled with an existing container and it would include two additional settings: replace origin container (or not), download new version of the image from remote registry (or not). We could hardcode the replace option (and not show it) and have two different actions in the menu; one for "Rebuild and replace" (or "Edit and replace" or something similar) and another for "Clone". They'd basically bring up the same dialog but one would replace the original and the other would force you to change the ports, volumes, etc. that are exclusive. That might be more clear than a checkbox or a set of radio buttons, even if it's implemented similarly. (The freshen up option would have to be an option still though.) |
i would like a way to do this, in docker we have docker-compose, which takes in a yaml file which can then preconfigure a container. a nice example can be seen in authentik's documentation: https://goauthentik.io/docs/installation/docker-compose i'm currently attempting to setup authentik through cockpit-podman and i can affirm, it is not fun setting the container up over and over again just because it doesn't work the first few times (due to config mistakes mostly :P) |
the possibility to clone or copy an existing container is really annoying. It is not funny to configure the same stuff again and again in case of update or SELinux destroying the container...
Please no comments like do it in CLI it is quick, I do not care... Otherwise we can delete Cockpit ;-)
The text was updated successfully, but these errors were encountered: