From 46cbcfe64b9dd9a554a404ea686be6a368d1fb4e Mon Sep 17 00:00:00 2001
From: Nir <nir123@gmail.com>
Date: Tue, 20 Jul 2021 10:45:14 +0300
Subject: [PATCH] Change docker command to be able to run with selinux

The docker command refused to work on my Fedora 34.
Adding the `Z` argument solved it.
---
 README.md | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index 928349f..d616fad 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ The standard images (`jekyll/jekyll`) include a default set of "dev" packages, a
 ```sh
 export JEKYLL_VERSION=3.8
 docker run --rm \
-  --volume="$PWD:/srv/jekyll" \
+  --volume="$PWD:/srv/jekyll:Z" \
   -it jekyll/jekyll:$JEKYLL_VERSION \
   jekyll build
 ```
@@ -33,7 +33,7 @@ The builder image comes with extra stuff that is not included in the standard im
 ```sh
 export JEKYLL_VERSION=3.8
 docker run --rm \
-  --volume="$PWD:/srv/jekyll" \
+  --volume="$PWD:/srv/jekyll:Z" \
   -it jekyll/builder:$JEKYLL_VERSION \
   jekyll build
 ```
@@ -49,7 +49,7 @@ The minimal image skips all the extra gems, all the extra dev dependencies and l
 ```sh
 export JEKYLL_VERSION=3.8
 docker run --rm \
-  --volume="$PWD:/srv/jekyll" \
+  --volume="$PWD:/srv/jekyll:Z" \
   -it jekyll/minimal:$JEKYLL_VERSION \
   jekyll build
 ```
@@ -70,7 +70,7 @@ For local development, Jekyll can be run in server mode inside the container. It
 
 ```sh
 docker run --rm \
-  --volume="$PWD:/srv/jekyll" \
+  --volume="$PWD:/srv/jekyll:Z" \
   --publish [::1]:4000:4000 \
   jekyll/jekyll \
   jekyll serve
@@ -86,7 +86,7 @@ If you provide a `Gemfile` and would like to update your `Gemfile.lock` you can
 ```sh
 export JEKYLL_VERSION=3.8
 docker run --rm \
-  --volume="$PWD:/srv/jekyll" \
+  --volume="$PWD:/srv/jekyll:Z" \
   -it jekyll/jekyll:$JEKYLL_VERSION \
   bundle update
 ```
@@ -104,8 +104,8 @@ You can enable caching in Jekyll Docker by using a `docker --volume` that points
 ```sh
 export JEKYLL_VERSION=3.8
 docker run --rm \
-  --volume="$PWD:/srv/jekyll" \
-  --volume="$PWD/vendor/bundle:/usr/local/bundle" \
+  --volume="$PWD:/srv/jekyll:Z" \
+  --volume="$PWD/vendor/bundle:/usr/local/bundle:Z" \
   -it jekyll/jekyll:$JEKYLL_VERSION \
   jekyll build
 ```
-- 
GitLab