I want to bind directory inside podman pod containers. When I try to bind it like this:
...
- name: project-root
hostPath:
path: ../.
type: Directory
...
volumeMounts:
- name: project-root
mountPath: /project
I can't access it in the container. It doesn't work also with root privileges.
When I turn off selinux on the system, then it works properly. With normal container command I can use ...:Z flag to get rid of this error, but I don't know how to handle it in the pod file.