Skip to content
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

Missing "Edit" option #1293

Open
dawidp opened this issue May 23, 2023 · 12 comments
Open

Missing "Edit" option #1293

dawidp opened this issue May 23, 2023 · 12 comments
Labels
enhancement New feature or request

Comments

@dawidp
Copy link

dawidp commented May 23, 2023

I don't see option to "Edit" containers or pods:

  • redirected ports
  • volume mappings
  • statup scripts
  • memory and cpu settings
  • health check actions
  • etc...
    I can't edit anything. The only option is to delete pod or container and create it again...
@dawidp dawidp added the enhancement New feature or request label May 23, 2023
@jelly
Copy link
Member

jelly commented May 24, 2023

This is indeed not something we do at the moment, there is #1270 open which offers a clone/copy feature.

@LiaraAlis
Copy link

I think this feature is very imported. At the moment is very annoying to change something. A clone/copy feature could help but isn't really the same… :(

@leocb
Copy link

leocb commented Jul 4, 2023

Meanwhile, is there a way to edit them outside of the UI, maybe by editing a text file somewhere in the system via the terminal? Not ideal but it would be a lot better than deleting and creating them again.

@martinpitt
Copy link
Member

@leocb: No, because that has the same conceptual difficulties as in the UI, as discussed in #1270. The closest is probably podman generate spec|systemd|kube (see man podman-generate). But this is more like templating. One really can't "edit" a container with any common-sense meaning of the word (not changing anything implicitly).

@LiaraAlis
Copy link

Meanwhile, is there a way to edit them outside of the UI, maybe by editing a text file somewhere in the system via the terminal? Not ideal but it would be a lot better than deleting and creating them again.

You can use podman-compose with docker-compose.yml files. It makes it much easier to edit, but when using compose you should start and stop the containers from shell, UI is not very helpful then. But it is possible to use UI features to inspect your running containers.

@bermudi
Copy link

bermudi commented Dec 21, 2023

the saddest thing is that you need to set everything up again just to change a single value in the environment variables.
all the volumes, ports, scripts, etc... this makes cockpit not really usable for container management

@marekmosiewicz
Copy link

Yes it makes podman module quite unfriendly. I think it would be possible to add option "Export config to file" and later create new container from it

@Casper042
Copy link

+1 to this in general.

I would say just copy what Portainer does with the Duplicate/Edit option
The key as mentioned in this thread is to simply maintain all the custom edits made to the first container, allow the admin to Change/Add/Delete whatever they like, and then when they "save", you simply re-deploy the container with the new edits.

Example, I just deployed PiHole but forgot to add Volume mounts for /etc/dnsmasq and /etc/pihole
If we had edit, I could simply add those and redeploy
But without them, I will need to not only add those to the GUI (which is a bit clunky I might add), but also re-enter the 5 different Ports and 3 different Environment variables as well.

Another option that would be nice, is to read the image spec and see what Volumes/Ports/EnvironmentVars are recommended and default those when creating a new container from the Image list. Saves me from having to go lookup the details on GitHub for every container.

@cmd430
Copy link

cmd430 commented Dec 30, 2023

I would say just copy what Portainer does with the Duplicate/Edit option

+1 for this

But I would also like Recreate option for updating a container to latest image

@technot80
Copy link

i spent quite some time trying to figure out why cockpit-podman ignored my /etc/containers/storage.conf completly, googling landed me here. and i have to agree, the lack of configuration options renders the podman plugin for cockpit completly useless for all but cases where users just have one big storage for everything, and dont intend too run any dockers needing special devices or settings. You might want to warn people about this in the readme, as it would have saved me and probably others a lot of time.

@chrismaster
Copy link

Would be nice if cockpit-podman would go the way with systemd and puts the configuration into
~/.config/containers/systemd/{servicename}.container
Better than any compose file and you can just edit it, do a daemon-reload and start the {servicename}. With 5.0 even pods are working.

@KyleSanderson
Copy link

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests