jekyll-docker: Permission errors

Probably needs a chmod after generation since docker will make everything owned by root. I did a rm -rf on _site and tried this again to ensure this is an issue (similar to this: https://github.com/treeder/go/blob/master/go.sh#L45).

          Source: /srv/jekyll
       Destination: /srv/jekyll/_site
      Generating... 
              Lunr: Skipping search indexing at user request
jekyll 2.4.0 | Error:  Permission denied @ dir_s_mkdir - /srv/jekyll/_site
Moving Gemfile.docker back to Gemfile
I hope you did not have a Gemfile actually called that.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 31 (16 by maintainers)

Commits related to this issue

Most upvoted comments

When I run the following command locally it works like a charm

docker run --name="myjekyllsite" --label="jekyll" -i --rm -p 61616:80 -p 4000:4000 -v /home/data/myjekyllsite/src:/srv/jekyll jekyll/jekyll

however when I run it on a server it fails with the following error

Configuration file: /srv/jekyll/_config.yml
            Source: /srv/jekyll
       Destination: /srv/jekyll/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
jekyll 3.1.2 | Error:  Permission denied @ dir_s_mkdir - /srv/jekyll/_site

Any thoughts?

@envygeeks Does Jekyll have the capability to make _site?