In my quest to finally fix #25094, I figured I need to bind the onion listen port explicitly to the external interface (bitcoind
), not to “all interfaces” ([::]
). So I’m using the argument
0-bind=bitcoind:${BITCOIND_TOR_PORT}=onion
/etc/hostname
is set to bitcoind
and the hostname
command yields the expected result. Also, both nslookup
and ping
can resolve the hostname to the external IP.
Note: I cannot use the numerical IP, because Docker assigns IP addresses dynamically on each invocation.
Expected behavior
I’d expect bitcoind to also resolve the hostname to my external IP, just like ping and nslookup do.
Actual behavior
In short, it dies.
0bitcoind_1 | Error: Cannot resolve -bind address: 'bitcoind:8334=onion'
1bitcoind_1 | Shutdown: In progress...
2bitcoind_1 | Error: Cannot resolve -bind address: 'bitcoind:8334=onion'
3bitcoind_1 | Shutdown: done
System information
bitcoind 24.0rc4 (self built), Docker+Compose from Ubuntu 22.04.1.