fix permissions volume permissions, closes #15

pull/16/head
kannix 5 years ago
parent 7737208f8b
commit d39e6195ba

@ -16,7 +16,7 @@ RUN curl https://downloads.getmonero.org/cli/monero-linux-x64-v$MONERO_VERSION.t
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
WORKDIR /home/monero

@ -18,15 +18,6 @@ this can be fixed with the following steps
# 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`
## Updates

Loading…
Cancel
Save