Cannot find config file and configure RPC with Docker container
Having built a docker container, I can't seem to find the config file to edit RPC settings, directory nodes, etc. I've searched the container with the following command:
docker run --rm -it joinmarket-test bash -c "ls"
As expected, it outputs the directory root, but where is the config folder located? With a local debian installation it's in the home folder, but what about the docker container?
Sorry if this sounds a bit noob, but the docker container approach is the only way to get JM working on aarch64 systems.
Default joinmarket.cfg is not bundled, it is created when you run wallet-tool.py or some other script for the first time or if it isn't present. See https://github.com/JoinMarket-Org/joinmarket-clientserver/blob/master/docs/USAGE.md .
The problem is when you run wallet-tool.py or any other script, it outputs the following:
User data location: /root/.joinmarket/
Created a new `joinmarket.cfg`. Please review and adopt the settings and restart joinmarket.
It says it's created in the root, but when I check no such folder is created. Probably due to permissions. Is there a way to tell the container to create it in the home directory?
Like:
--datadir=$HOME/.joinmarket:/root/.joinmarket
You'd have to do it as follows, mapping your local folder to docker's expected location
docker run --rm -it -v ${HOME}/.joinmarket:/root/.jointmarket joinmarket-test bash -c "ls"
You'd have to do it as follows, mapping your local folder to docker's expected location
docker run --rm -it -v ${HOME}/.joinmarket:/root/.jointmarket joinmarket-test bash -c "ls"
Unfortunately it doesn't solve the issue because Joinmarket is still looking in the root:
User data location: /root/.joinmarket/
Created a new `joinmarket.cfg`. Please review and adopt the settings and restart
I've examined the docker file and can't find any issues. It seems to be hard coded to use the root directory, so remapping doesn't work.