Skip to content

Conversation

@ereslibre
Copy link
Collaborator

Add SELinux mount option Z to the workspace volume mount in the shell command, ensuring the workspace directory is accessible within the container on SELinux-enabled systems.

Changes

  • Updated Docker volume mount in shellCommand to include the Z SELinux label option (/workspace:Z,rw)

Notes

This change specifically addresses SELinux-enforcing systems (like Fedora, RHEL, CentOS) where Docker containers need explicit SELinux context labels to access host directories. The Z option tells Docker to automatically label the volume with a private unshared label, allowing the container to access the workspace files.

@ereslibre ereslibre self-assigned this Oct 21, 2025
@ereslibre ereslibre merged commit 56704f4 into main Oct 21, 2025
4 checks passed
@ereslibre ereslibre deleted the ereslibre/add-selinux-mount-options branch October 21, 2025 12:52
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.

2 participants