containers / containers/podman-compose
How to keep Selinux happy when running on development host
- Dominant language
- Python
- Stars
- 6.2k
- Forks
- 622
- PR merge metrics
- No merged PRs in 30d
Description
In docker and podman, I use a Z flag when bind mounting a host directory into the container and I am saved from Selinux complaints. However, I don't know how to do that when using podman-compose. I tried the following entry in docker-compose.yml, but it doesn't work.
```
version: "3.0"
services:
app:
image: registry.example.com/author/myapp:latest
volumes:
- type: bind
source: .
target: /app
# restart: always
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 5
window: 120s
depends_on:
- db
- redis
```
The error that comes up reads like:
>python3: can't open file 'app.py': [Errno 13] Permission denied
Contributor guide
Assessment
This issue has not been assessed yet.