run behind tor container.
Closed this issue · 1 comments
Hello,
Firstly I would like to thank you for work you have done.
Out of the box, this container works!
I am trying to run your container through my tor container with following execution (I am using podman)
$ podman run --rm --interactive --tty \
--name=bitcoind-node \
--volume bitcoin-data:/home/bitcoin/.bitcoin \
--network container:tor-socks-proxy_btc \
ruimarinho/bitcoin-core
I have created a volume /var/lib/containers/storage/volumes/bitcoin-data
However, when I start bitcoin container, I see a few things that make me think that it is not seeing bitcoin-data volume.
...
Default data directory /home/bitcoin/.bitcoin
Using data directory /home/bitcoin/.bitcoin
Config file: /home/bitcoin/.bitcoin/bitcoin.conf (not found, skipping)
Command-line arg: datadir="/home/bitcoin/.bitcoin"
...
UpdateTip: new best=00000000340a301c84fee7800ca694ca64e9fc8124334bf51[1938/1938]
9131 height=15011 version=0x00000001 log2_work=45.873851 tx=15136 date='2009-05-19T06:44:23Z' progres
s=0.000022 cache=3.3MiB(15117txo)
UpdateTip: new best=000000009023a0ae404b63221692f4695bb6b2883bedb1a2df44ee9b0015
f15e height=15012 version=0x00000001 log2_work=45.873947 tx=15137 date='2009-05-19T06:52:59Z' progres
s=0.000022 cache=3.3MiB(15118txo)
UpdateTip: new best=000000000f4574808d8c3b5fcfc6bb49cd2c3e9e4d5d213d7e6a47b7186c
6108 height=15013 version=0x00000001 log2_work=45.874043 tx=15138 date='2009-05-19T07:04:50Z' progres
s=0.000022 cache=3.3MiB(15119txo)
... etc
In bitcoin-data volume, I have conf and all blocks up to today from my main node, so it 'should' use my bitcoin.conf
and not start a full blockchain sync from 2009.
$ ls bitcoin-data
banlist.dat bitcoind.pid _data fee_estimates.dat mempool.dat peers.xxx settings.json
bitcoin.conf blocks database indexes old peers.dat wallet.dat
bitcoin.conf_old chainstate debug.log lightning peers.xxx rpcauth.py wallet.datBU
What am I doing wrong?
Thanks in advance.
I have it working!
tor container is running like:
podman run --detach \
--name tor-socks-proxy \
--publish 8333:8333 \
--publish 127.0.0.1:9150:9150/tcp \
peterdavehello/tor-socks-proxy:latest
Then connect bitcoin-node with tor-socks-proxy network container
podman run --rm --interactive --tty \
--name bitcoind-node \
--volume bitcoin-data:/home/bitcoin/.bitcoin \
--network container:tor-socks-proxy \
ruimarinho/bitcoin-core
In bitcoin.conf
set proxy
to ipaddress:port of tor-socks-proxy
proxy=10.88.0.2:9150
Also, bitcoin data is stored within _data
dir