Hi Everyone,
I am new to Unraid and I have been trying to figure out how to reference other containers by container name from within qbittorrent.
For example, I have both the 'binhex-qbittorrentvpn' container and 'cross-seed' container on the same custom network.
I noticed that from the 'cross-seed' container's console, I can ping 'binhex-qbittorrentvpn' and get a successful ping result.
/config $ ping binhex-qbittorrentvpn
PING binhex-qbittorrentvpn (172.18.0.166): 56 data bytes
64 bytes from 172.18.0.166: seq=0 ttl=42 time=0.043 ms
However, on the contrary, if I use the 'binhex-qbittorrentvpn' container's console, and ping 'cross-seed'. The ping fails.
sh-5.2# ping cross-seed
ping: cross-seed: Name or service not known
I wanted to do a curl command from within the qbittorrent container to cross-seed, by referring to cross-seed by hostname, but found curl only works if I type the IP. I know that I can set a static docker IP, to get around this, but I am trying to learn how this all works, and would prefer a hostname.
# Does not work if I refer to the cross-seed container as 'cross-seed'.
curl -XPOST http://cross-seed:2468/
# Works if I use the internal docker IP and Port of the cross-seed container
curl -XPOST http://172.18.0.99:2468/
I checked the FAQ on Github, but didn't see anything relevant, although I am not a network engineer and just discovering homelabs. So apologies if this was covered.
Thanks for any help/suggestions.