asbjornenge / asbjornenge/tezos-docker
using docker volume results in permissions denied
- Dominant language
- Shell
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```
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
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the repository's Dockerfile and reproduce the documented docker volume create and docker run commands. Verify that the mounted /var/run/tezos paths are writable by the tezos user, and use the reported Unix permission-denied error to confirm the issue is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, dockerfile
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100