joinmarket-clientserver icon indicating copy to clipboard operation
joinmarket-clientserver copied to clipboard

Cannot find config file and configure RPC with Docker container

Open snoopy870 opened this issue 3 months ago • 4 comments

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.

snoopy870 avatar Sep 13 '25 13:09 snoopy870

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 .

kristapsk avatar Sep 13 '25 16:09 kristapsk

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

snoopy870 avatar Sep 13 '25 17:09 snoopy870

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"

roshii avatar Sep 17 '25 14:09 roshii

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.

snoopy870 avatar Sep 19 '25 12:09 snoopy870