containers / containers/podman-compose

How to keep Selinux happy when running on development host

Open
#246 5 comments 0 reactions 0 assignees View on GitHub
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

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.