containers / podman-py

Python bindings for Podman's RESTful API
Apache License 2.0
247 stars 90 forks source link

SELinux `security-opt` parameter is not showing upon inspect container #343

Open Amizzuddin opened 10 months ago

Amizzuddin commented 10 months ago

Hi, I have notice when "security_opt" parameter is supply as run(), parameter is not not reflecting in container. Here are some information:

1) Details of run() command: run_command.txt Screenshot from 2023-11-16 07-45-41

2) Detail of HostConfig from podman inspect <container_name>: HostConfig.json Screenshot from 2023-11-16 07-46-15

Also I use the following code comments for available parameters as well as parameters to podman_config. I did print of the values and notice that the parameters did pass but somehow when I perform inspect to the container SecurityOptis not set. Kindly do advise how can I get the SecurityOpt set.

REMARK: Just an extra information, when I run the container the cli or compose method, I do not face the same issue.

Thank you so much for the development of podman-py and l look into this issue. Looking forward for your advice.