Docker: Cannot Modify File on Host
I was trying to use the jekyll docker image to serve my blog locally,
and to update the Gemfile.lock
file.
When trying to serve the blog I got:
$ docker run --rm \
--volume="$PWD:/srv/jekyll" \
--volume="$PWD/vendor:/usr/local/bundle" \
--publish 4000:4000 \
-it jekyll/jekyll:$JEKYLL_VERSION \
jekyll serve --drafts
[...jekyll boot, etc...]
jekyll 3.8.5 | Error: Permission denied @ dir_s_mkdir - /srv/jekyll/_site