Skip to content

Conversation

@Parkerhiphop
Copy link

@Parkerhiphop Parkerhiphop commented Jan 10, 2026

Description

This PR fixes Docker mount permission errors on SELinux-enabled systems by appending the :z suffix to volume mounts.

  • Modified Makefile (build and serve targets)
  • Modified .github/workflows/build-docker-image.yml

The :z flag instructs Docker to relabel the volume content with the correct SELinux context. On non-SELinux systems, this flag is ignored by Docker, ensuring backward compatibility.

JIRA

https://issues.apache.org/jira/browse/KAFKA-20039

Testing & Verification

I have verified this change locally to ensure no regression on non-SELinux environments.

Environment:

  • OS: macOS 14.1.2
  • Docker Version: 28.5.2
  • SELinux: Disabled/Not present

Steps Performed:

  1. Ran make build: Verified that the static site generates successfully without errors.
  2. Ran make serve: Verified that the local server starts at http://localhost:1313 without permission errors.

Result:
The build passed and the site is accessible, confirming that the :z flag is safely ignored on non-SELinux systems.

Screenshots:
image
image

Reviewers: Ken Huang s7133700@gmail.com, Chia-Ping Tsai chia7712@gmail.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.

3 participants