fix permissions volume permissions, closes #15

This commit is contained in:
kannix 2019-07-27 15:09:41 +02:00
parent 7737208f8b
commit d39e6195ba
2 changed files with 1 additions and 10 deletions

View File

@ -16,7 +16,7 @@ RUN curl https://downloads.getmonero.org/cli/monero-linux-x64-v$MONERO_VERSION.t
FROM ubuntu:18.04 FROM ubuntu:18.04
RUN useradd -ms /bin/bash monero RUN useradd -ms /bin/bash monero && mkdir -p /home/monero/.bitmonero && chown -R monero:monero /home/monero/.bitmonero
USER monero USER monero
WORKDIR /home/monero WORKDIR /home/monero

View File

@ -18,15 +18,6 @@ this can be fixed with the following steps
# Usage # Usage
**first start:**
you need to change the permission of the mounted volume to allow the monero user inside the container to write the blockain in the volume. To do this, you have to mount the volume where you want to store the blockchain to the container and chown that path to the monero user. e.g.
`docker run -v xmrchain:/home/monero/.bitmonero -t --rm --name=monerod -u root --entrypoint=/bin/chown kannix/monero-full-node -R monero:monero .bitmonero`
you have to do this only once before first start.
After this, you can start the container with e.g.
`docker run -tid --restart=always -v xmrchain:/home/monero/.bitmonero -p 18080:18080 -p 18081:18081 --name=monerod kannix/monero-full-node` `docker run -tid --restart=always -v xmrchain:/home/monero/.bitmonero -p 18080:18080 -p 18081:18081 --name=monerod kannix/monero-full-node`
## Updates ## Updates