September 27, 20205 yr Hi, I can't succed to ping container from another container using its name ! All my containers are in the same 'bridge' network. When I run 'docker inspect' command, I see all the containers (sonarr, radarr, bazarr, jellyfin...) But if I open a console on a container, a 'ping sonarr' returns 'Name does not resolve' The --name argument is set for all containers. Let's see dns files in a container: /etc/resolv.conf # Generated DNSv4 entries: nameserver 192.168.1.11 # pi-hole docker adress nameserver 1.1.1.1 nameserver 1.0.0.1 /etc/hosts 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 172.17.0.9 7677bf67772b Any help ? Thanks Edited September 27, 20205 yr by mika91
September 27, 20205 yr Are you using the default bridge network or did you create your own? For pinging by name to work you need to create your own.
September 27, 20205 yr Author 3 minutes ago, shaunmccloud said: Are you using the default bridge network or did you create your own? For pinging by name to work you need to create your own. I use the default one. I'll try with a custom network (strange that it works with default bridge network, using docker-compose on OMW) Thanks
September 27, 20205 yr 3 minutes ago, mika91 said: I use the default one. I'll try with a custom network (strange that it works with default bridge network, using docker-compose on OMW) Thanks unRAID is a little different. Once I finish tracking down the bad cache drive in my server, I'll verify thats what I did.
September 27, 20205 yr Cache drive is fixed (i.e. replaced) and I have the following docker networks br0 bridge host mybridge none mybridge is the one I use for my containers because DNS works.
September 27, 20205 yr Author ok, so I created a new 'my-bridge' network as suggested, and put all my containers in. And now it's working, I can ping containers using their name. I guess there is a good reason to explain why DNS it's not working on default bridge... But for anyone dealing with reverse proxy (or any containers interaction such as bazarr with sonarr/radarr), the feature is missing And because unRAID is docker/VM oriented, maybe a better documentation and/or UI (create network, use a default network with dns feature, ...) would be an improvement. Whatever, the community and forum are very responsive Thanks Edited September 27, 20205 yr by mika91
September 27, 20205 yr Author You're right: https://github.com/linuxserver/reverse-proxy-confs#ensure-you-have-a-custom-docker-network By the way, it explains that docker-compose create it's own bridge network, that's why DNS was working on my previous homelab. As I said earlier, maybe unRAID team should consider using a custom bridge network as default one Edited September 27, 20205 yr by mika91
Archived
This topic is now archived and is closed to further replies.