asbjornenge / tezos-docker

Declarative Dockerfiles for Tezos
3 stars 1 forks source link

using docker volume results in permissions denied #2

Open utdrmac opened 5 years ago

utdrmac commented 5 years ago
docker volume create tezos_node
docker run -v tezos_node:/var/run/tezos ....
...
Error: Unix permission denied

This is because the volume is mounted at the path, owned by 'root' which the tezos user cannot modify.

I was able to fix this by modifying the Dockerfile as follows:

RUN useradd -ms /bin/bash tezos

RUN mkdir -p /var/run/tezos/node /var/run/tezos/client && \
        chown tezos /var/run/tezos/node /var/run/tezos/client
utdrmac commented 4 years ago

Fixed in #3