Skip to content

🦭 fix: add SELinux :Z label to .claude volume mount (Docker & Podman)#49

Open
safrano9999 wants to merge 1 commit into
RichardAtCT:mainfrom
safrano9999:fix/selinux-volume-label
Open

🦭 fix: add SELinux :Z label to .claude volume mount (Docker & Podman)#49
safrano9999 wants to merge 1 commit into
RichardAtCT:mainfrom
safrano9999:fix/selinux-volume-label

Conversation

@safrano9999
Copy link
Copy Markdown

Summary

  • Adds :Z SELinux label to the .claude volume mount in docker-compose.yml
  • Fixes Permission denied errors on SELinux-enabled systems (Fedora, RHEL) and rootless Podman
  • Safely ignored on systems without SELinux — no impact on plain Docker

Test plan

  • Verify container starts on rootless Podman (Fedora/RHEL)
  • Verify container still works on plain Docker (no SELinux)
  • Verify .claude directory is readable inside the container

🤖 Generated with Claude Code

Fixes permission denied errors on SELinux-enabled systems (Fedora, RHEL)
and rootless Podman. The :Z flag is safely ignored on systems without SELinux.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant