containers / containers/podman-py

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

Open
#343 1 comment 0 reactions 1 assignee Assigned to @inknos View on GitHub
help wanted
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)
![Screenshot from 2023-11-16 07-45-41](https://github.com/containers/podman-py/assets/58518621/3080d38d-32c5-4073-9395-cdc1b6468389)

2) Detail of `HostConfig` from `podman inspect `: [HostConfig.json](https://github.com/containers/podman-py/files/13370755/HostConfig.json)
![Screenshot from 2023-11-16 07-46-15](https://github.com/containers/podman-py/assets/58518621/fd5bc16c-8f02-4ee8-b153-129a7d71f685)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.