[
https://issues.apache.org/jira/browse/KAFKA-20039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18050107#comment-18050107
]
Chia-Ping Tsai commented on KAFKA-20039:
----------------------------------------
It can be fixed by appending the `:z` suffix to the Docker volume mount flag.
IIRC, the flag is ignored on non-SELinux system, so it is safe to apply
generally
> Fix Docker mount permission errors on SELinux-enabled systems
> -------------------------------------------------------------
>
> Key: KAFKA-20039
> URL: https://issues.apache.org/jira/browse/KAFKA-20039
> Project: Kafka
> Issue Type: Bug
> Reporter: Chia-Ping Tsai
> Assignee: Chia-Ping Tsai
> Priority: Minor
>
> When running the Docker command (e.g., via {{{}make serve{}}}) on Linux
> distributions with SELinux enabled (such as Fedora, RHEL, or CentOS), the
> container fails to write to the mounted volume.
> {code:java}
> Error: command error: failed to load modules: failed to apply mounts
> for project: failed to open dir "/src": "open /src: permission denied" make:
> *** [Makefile:39: serve] 錯誤 1 {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)