marhkb / pods

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

Arguments aren't passed through on pod creation #819

Open jayhemsley opened 2 weeks ago

jayhemsley commented 2 weeks ago

I'm using Pods (v2.0.3) via Flatpak on Fedora 41.

I'm not sure if it's a bug or if I'm just doing it incorrectly, but it seems that arguments on the create pod details tab aren't being passed through on creation.

For example, I'm trying to pass -p 8080:80 to the pod on creation and it doesn't work.

I've tried all variations like p 8080:80, p=8080:80 etc and none of them are applied on creation. When I create a pod via CLI with podman pod create -p 8080:80 --name test-pod, podman ps -a -p correctly shows that the pod has those ports bound to it. I tried doing it under the infra tab as well and neither work or apply any options.

LogExE commented 2 weeks ago

Looks like arguments rather get passed to command inside container, see pics. Screenshot from 2024-10-03 10-18-22 Screenshot from 2024-10-03 10-15-44 The application probably needs some way to pass custom parameters to podman run command, like, for example, to pass gpu device (--device nvidia.com/gpu=all --security-opt=label=disable) or to choose container network (--network example-network).