lbrynet-multiarch-compiler: Add notes that a config file must be mounted.

This commit is contained in:
Ryan McGuire 2019-06-17 17:15:46 -04:00 committed by Leopere
parent 4f4a9c9aab
commit 33f3eeb8df

View file

@ -64,11 +64,13 @@ is to ensure that the wallet is backed up to a real storage device. You must run
the container with the appropriate volume argument, or else lbrynet will refuse the container with the appropriate volume argument, or else lbrynet will refuse
to run. to run.
If you compiled lbrynet as above, with the tag `lbrynet-x86:v0.37.2`, you could run The config file must be mounted at `/etc/lbry/daemon_settings.yml`.
If you compiled lbrynet as above, with the tag `lbrynet:v0.37.2`, you could run
docker like so: docker like so:
``` ```
docker run --rm -it -v wallet:/home/lbrynet lbrynet-x86:v0.37.2 lbrynet start docker run --rm -it -v wallet:/home/lbrynet -v /path/to/daemon_settings.yml:/etc/lbry/daemon_settings.yml lbrynet:v0.37.2 lbrynet start
``` ```
This automatically creates a docker volume called `wallet` and it will persist This automatically creates a docker volume called `wallet` and it will persist
@ -79,7 +81,7 @@ If you would rather not use a docker volume, you can mount a directory
from your host instead: from your host instead:
``` ```
docker run --rm -it -v /path/on/your/host:/home/lbrynet lbrynet-x86:v0.37.2 lbrynet start docker run --rm -it -v /path/on/your/host:/home/lbrynet -v /path/to/daemon_settings.yml:/etc/lbry/daemon_settings.yml lbrynet:v0.37.2 lbrynet start
``` ```
Either way, the container uses the configuration from `/home/lbrynet` inside the container. Either way, the container uses the configuration from `/home/lbrynet` inside the container.