title: Unable to build cloned Jekyll site - jekyll 3.8.5 | Error: Permission denied @ dir_s_mkdir - /srv/jekyll/_site
body: <p>I am unable to build the jekyll site I cloned with git due to a permission error. I am using Ubuntu 18.04. I've looked at most SO posts regarding this error, but none of the solutions have worked for me.</p>
  
  <p>The command to build the site is docker-compose up. Running this command with or without sudo does not change the error. I am in the docker group. I am able to build the site using bundle exec jekyll serve. This command successfully creates the _site folder. </p>
  
  <p>I tried adding the _site manually, but this results in a different error.</p>
  
  <pre class="lang-sh prettyprint-override"><code>$ docker-compose up         
  Starting site ... done
  Attaching to site
  site | Configuration file: /srv/jekyll/_config.yml
  site |             Source: /srv/jekyll
  site |        Destination: /srv/jekyll/_site
  site |  Incremental build: disabled. Enable with --incremental
  site |       Generating... 
  site |        Jekyll Feed: Generating feed for posts
  site | jekyll 3.8.5 | Error:  Permission denied @ dir_s_mkdir - /srv/jekyll/_site
  site exited with code 1
  </code></pre>
  
  <p>docker-compose.yml</p>
  
  <pre><code>version: '3'
  services:
    doc:
      image: jekyll/jekyll:3.8
      volumes:
        - .:/srv/jekyll
      container_name: site
      ports:
        - "4000:4000"
      stdin_open: true
      tty: true
      command: bash -c "bundle install &amp;&amp; bundle exec jekyll serve --host 0.0.0.0"
  </code></pre>
  
  <p>I am expecting to get no errors and have the _site directory successfully created.</p>