title: jekyll 3.8.6 | Error: Permission denied @ dir_s_mkdir - /srv/jekyll/_site
body: <p>According to this <a href="https://martinpeck.com/jekyll/blog/containers/2019/02/02/build-and-deploy-jekyll-with-docker-part1/" rel="nofollow noreferrer">https://martinpeck.com/jekyll/blog/containers/2019/02/02/build-and-deploy-jekyll-with-docker-part1/</a></p>
  <p>I should be able to do this:</p>
  <pre><code>docker run --rm -it \
  --volume=&quot;$PWD:/srv/jekyll&quot; \
  --volume=&quot;$PWD/vendor/bundle:/usr/local/bundle&quot; \
  -p 4000:4000 jekyll/jekyll:3.8 \
  jekyll serve
  </code></pre>
  <p>and then hit http://localhost:4000 and view the site.</p>
  <p>However, I get:</p>
  <pre><code>jekyll 3.8.6 | Error:  Permission denied @ dir_s_mkdir - /srv/jekyll/_site
  </code></pre>
  <p>when running it on</p>
  <pre><code>PRETTY_NAME=&quot;Ubuntu 21.10&quot;
  NAME=&quot;Ubuntu&quot;
  VERSION_ID=&quot;21.10&quot;
  VERSION=&quot;21.10 (Impish Indri)&quot;
  VERSION_CODENAME=impish
  ID=ubuntu
  ID_LIKE=debian
  HOME_URL=&quot;https://www.ubuntu.com/&quot;
  SUPPORT_URL=&quot;https://help.ubuntu.com/&quot;
  BUG_REPORT_URL=&quot;https://bugs.launchpad.net/ubuntu/&quot;
  PRIVACY_POLICY_URL=&quot;https://www.ubuntu.com/legal/terms-and-policies/privacy-policy&quot;
  UBUNTU_CODENAME=impish
  </code></pre>
  <p>Any suggestions?</p>