containers / containers/podman-py
SELinux `security-opt` parameter is not showing upon inspect container
- Dominant language
- Python
- Stars
- 381
- Forks
- 140
- Avg merge
- 5h 30m
- Merged PRs (30d)
- 1
Description
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](https://github.com/containers/podman-py/files/13370731/run_command.txt)

2) Detail of `HostConfig` from `podman inspect `: [HostConfig.json](https://github.com/containers/podman-py/files/13370755/HostConfig.json)

Also I use the following code comments for [available parameters](https://github.com/containers/podman-py/blob/caf56256eb18787801aee70013b590b6876aad09/podman/domain/containers_create.py#L32-L340) as well as [parameters to podman_config](https://github.com/containers/podman-py/blob/caf56256eb18787801aee70013b590b6876aad09/podman/domain/containers_create.py#L449-L530). I did print of the values and notice that the parameters did pass but somehow when I perform `inspect` to the container `SecurityOpt`is 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.
Contributor guide
Assessment
This issue has not been assessed yet.