Closed Meister1593 closed 2 years ago
it could be SELinux, because I don't see Z,U
in the output
podman create --name=nginx-rtmp_nginx_1 .... -v /var/home/plyshka/Documents/docker/nginx-rtmp/hosts:/etc/nginx/conf.d -v /var/home/plyshka/Documents/docker/nginx-rtmp/html:/usr/share/nginx/html -v /var/home/plyshka/Documents/docker/nginx-rtmp/logs/nginx:/var/log/nginx --net nginx-rtmp_default --network-alias nginx -p 8080:80 -p 4433:443 nginx:latest
please use podman-compose down
to remove old container.
you might want to upgrade to the latest devel (which detects changes and recreate the container)
pip3 install --user https://github.com/containers/podman-compose/archive/devel.tar.gz
it could be SELinux, because I don't see
Z,U
in the outputpodman create --name=nginx-rtmp_nginx_1 .... -v /var/home/plyshka/Documents/docker/nginx-rtmp/hosts:/etc/nginx/conf.d -v /var/home/plyshka/Documents/docker/nginx-rtmp/html:/usr/share/nginx/html -v /var/home/plyshka/Documents/docker/nginx-rtmp/logs/nginx:/var/log/nginx --net nginx-rtmp_default --network-alias nginx -p 8080:80 -p 4433:443 nginx:latest
please use
podman-compose down
to remove old container.you might want to upgrade to the latest devel (which detects changes and recreate the container)
pip3 install --user https://github.com/containers/podman-compose/archive/devel.tar.gz
Sorry, the output was from the first run without Z,U but issue was pretty much identical
But nonetheless
I just tried latest development podman-compose from pip (before - i installed it from copr), gracefully removed containers with podman-compose down
(before i used just podman-compose stop
), added Z,U flags again and it seems that it works now!
Thanks!
the latest version would detect changes in the YAML and automatically do down
.
Describe the bug Mounting volumes (in my case - local folder) doesn't work
I tried using nginx container and mount local folders from compose folder into container, but when i did - it couldn't read/write into them because of permissions error
I first reported it at podman issue but i think it's not related to it because it works without compose (by just mounting folder like so
podman run --rm --name nginx -v ./logs/nginx:/var/log/nginx:Z,U nginx
)To Reproduce Steps to reproduce the behavior:
docker-compose.yml
,.env
,Dockerfile
, ...etc.)docker-compose.yaml
Added Z,U labels for mountpoints (SELinux related)
podman-compose up
Expected behavior Podman-compose should mount folder properly and container should be able to access mounted folders. Adding labels to mountpoints didn't work either
Actual behavior It couldn't access these folders because of permission deniederror
Output
Environment: