Skip to content

Commit 2537a5a

Browse files
Instruct podman to relabel volume with a private unshared label
SELinux may deny permissions to the Jekyll container preventing it from reading the website files. The 'Z' option instructs podman to apply a private unshared label to the files on the host allowing the container access.
1 parent 0360ecc commit 2537a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ clean:
55
$(RM) -r _site
66

77
rootless:
8-
podman run --interactive --tty --publish 4000:4000 --volume .:/srv/jekyll --env JEKYLL_ROOTLESS=1 jekyll/jekyll:pages jekyll serve
8+
podman run --interactive --tty --publish 4000:4000 --volume .:/srv/jekyll:Z --env JEKYLL_ROOTLESS=1 jekyll/jekyll:pages jekyll serve
99

1010
.PHONY: all clean rootless

0 commit comments

Comments
 (0)