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.

What is the purpose of adding a port when a Docker container is using the host network?

Featured Replies

While editing a Docker container, I noticed that in the port mapping section for containers in the host network, the "Container Port" option disappears. Why does it disappear instead of the entire "Add Port" section?
 

I understand that port mapping is meaningless in the host network mode, so what is the purpose of "Add Port" in this case?

Solved by bmartino1

  • Community Expert
  • Solution

Some internal docker variables may require a port specified to use for the docker container services.

when running a docker in host mode. It replaces unraids ports. example sftp this is a ssh program that run on port 22

If i chose to use unraids host network the ip address will be the same ip address as unraid and replace and overshadow the host port
If i Chose Bridge. (Same as host...) the ip address will be the same ip address as unraid and replace and overshadow the host port (But not fully replace/override unraids ports)
If i go custom network, all ports are open on the ip you set to the docker.


Review:
https://docs.docker.com/engine/network/
https://docs.docker.com/get-started/docker-concepts/running-containers/publishing-ports/

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.