Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Docker: can't ping through containers

Featured Replies

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 by mika91

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.

  • 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

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.

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.

  • 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 by mika91

I knew to do it because of the Linuxserver.io team.

Not sure they easily can.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.