marhkb / pods

Keep track of your podman containers
GNU General Public License v3.0
728 stars 12 forks source link

Ability to edit volumes/port mapping of an existing container #704

Closed vhaudiquet closed 1 year ago

vhaudiquet commented 1 year ago

Describe your feature request

When creating a container, the GUI allows for choosing filesystems to bind mount in the container, and ports to map between container and host. However, once the container is created, those properties cannot be edited (even though they are available on the container properties json file).

The GUI should allow us to modify such volumes and ports.

(Sorry if it is possible and i couldn't find it)

marhkb commented 1 year ago

No, this is currently not possible in the app. How exactly does your original workflow to change these settings look like?

I couldn't find anything in particular in the API docs (https://docs.podman.io/en/latest/_static/api.html?version=v4.5#tag/containers) how to modify them after creation.

vhaudiquet commented 1 year ago

I will try to explain what i want. You tell me if it makes sense.

I'm using containers as build environment, to compile software (currently the old 4.0 kernels). I'm using podman instead of docker, because of how easy it is to use with your interface, which is really neat.

When i want to compile another kernel elsewhere in my host filesystem, that i have not mapped to the container, i'm stuck.

I think that the container people would rather :

It basically does the same of what i want, which is changing the mapped directory of a container.

However, i could not find a way to export an image from a container in the pods GUI either.

I think adding both options would enhance the features of the app without drawbacks :

Even though the second one might be a bit far-fetched.

marhkb commented 1 year ago

Ok, you mean to make some kind of convenience function that changes volumes/port mappings by deleting the old container and adding a new one with the same configuration?

I don't know why you would want the export function because you then need to import that image again. But nevertheless, this would be a good feature for Pods.

Have you considered using the commit function of the container? I think that should have the same effect as export/import function. You could then use the new image.

grafik

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.