gatsby-docker icon indicating copy to clipboard operation
gatsby-docker copied to clipboard

Not working on Linux

Open mathias-aa opened this issue 6 years ago • 2 comments

Hi !

I can't get to make it work on linux. I'm struggling with user permission as generate files are root privileged and I'm not able to edit them from my host IDE. Unless this problem, everything works like a charm.

Can you help ?

mathias-aa avatar Apr 10 '18 15:04 mathias-aa

Same problem here! We need somehow to transfer and set user to docker container to create folder as a local user

MikSDigital avatar Aug 01 '19 07:08 MikSDigital

Got it working with this (I am not sure it is correct solution yet): docker run -it --rm -u $(id -u ${USER}):$(id -g ${USER}) -v $(pwd):/site -p 8000:8000 aripalo/gatsby-docker bin/sh

MikSDigital avatar Aug 02 '19 14:08 MikSDigital