Skip to content
Snippets Groups Projects
Commit 46cbcfe6 authored by Nir's avatar Nir Committed by Jordon Bedwell
Browse files

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.
parent 499c8abf
No related branches found
No related tags found
No related merge requests found
......@@ -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
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment