Dockerized node.js and bind mount permission problem
In your Dockerfile:
ARG UID=1000
ARG GID=1000

RUN usermod -u $UID node &amp;&amp; groupmod -g $GID node

Then using docker build:
docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) .

The ARG lines provide defaults. If you leave off the --build-arg flags, they will be used. If you do use the --build-arg flags values those will be used instead.