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.

How to use the host's IP Address inside a Docker container

Featured Replies

I know this isn't news, but it was new to me and I didn't see a post in here regarding this directly so hopefully this will help people as well.

Basically when you want one docker to talk to another docker what IP do you give it.  In my case I was using a Static IP because LOCALHOST doesn't work and if you have a potentially dynamic IP what do you do?

 

I stumbled across this article https://dev.to/natterstefan/docker-tip-how-to-get-host-s-ip-address-inside-a-docker-container-5anh which let me know that in Linux you can use "172.17.0.1" to achieve this.  (Windows/Mac Dockers uses "gateway.docker.internal".  For some reason Linux is unique)

 

It was really helpful for me and hopefully this was titled in such a way that others find it when they encounter the same issue.

 

I know this isn't news, but it was new to me and I didn't see a post in here regarding this directly so hopefully this will help people as well.
Basically when you want one docker to talk to another docker what IP do you give it.  In my case I was using a Static IP because LOCALHOST doesn't work and if you have a potentially dynamic IP what do you do?
 
I stumbled across this article https://dev.to/natterstefan/docker-tip-how-to-get-host-s-ip-address-inside-a-docker-container-5anh which let me know that in Linux you can use "172.17.0.1" to achieve this.  (Windows/Mac Dockers uses "gateway.docker.internal".  For some reason Linux is unique)
 
It was really helpful for me and hopefully this was titled in such a way that others find it when they encounter the same issue.
 
If the 2 containers are in the same network, then you can use the name of the containers as hostnames to communicate between them.

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.