envygeeks / jekyll-docker

⛴ Docker images, and CI builders for Jekyll.
ISC License
998 stars 282 forks source link

running container as user fails #291

Open mazzystr opened 4 years ago

mazzystr commented 4 years ago

I would like to run the container as my own uid. Files under /home/mazzystr/git/blah/_site are getting generated as uid 100999. I can't see anyway to change this behavior.

launch command...

docker run -d --user=`id -u` -e JEKYLL_UID=`id -u` --name blah --net=host -v /home/mazzystr/git/repo:/srv/jekyll jekyll/jekyll /bin/bash -c "jekyll serve --force_polling --future"

logs...

$ podman logs -f blah
/usr/jekyll/bin/jekyll: exec: line 14: /usr/local/bundle/bin/jekyll: not found