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 mapping with -p not working?

Featured Replies

Hi all - I know this has been discussed in a multitude of other threads, but I'm one of the people that set a custom IP using macvlan and want to use port 80 to make it easier to access a container's web UI and I'm a little confused.

 

I know you can change the Web UI port for a few different services, but what I don't understand is when setting the following in "Extra Parameters" on the container edit page:

-p 80:8080

If I have the container IP address set to 10.0.0.5, the web UI port is at 8080, why doesn't http://10.0.0.5 get me to the web UI? Is some macvlan magic taking precedent over the Docker parameters?

 

(Or is there a more obvious way to do this that I'm missing? Specifying ports in the variables doesn't seem to do much in v6.6.7)

 

and obviously thank you devs for this amazing product that I'm too dumb to use :)

Edited by vanik
didn't want that to sound sarcastic

Because when an app is on its own IP address then port mapping is completely ignored.  To change the webUI for the app in such a circumstance you have to tell the app to look at port 80 instead of 8080 usually via a config file in appdata (if it supports such a thing)

  • Author

Hmm... so all the ports are available? Using Sonarr for an example: if I set the web UI port to "80" instead of "8989" in the app config itself, I still can't seem to connect to http://10.0.0.5

  • Author

Restarted both the container and Unraid and the new port is still unavailable. I must be missing something...

  • Community Expert

I think the port you want to use needs to be exposed in the dockerfile (used to build the image) also

  • Author

Hmm... wouldn't setting a parameter like -p 80:80 accomplish the same thing with the engine?

1 hour ago, tjb_altf4 said:

I think the port you want to use needs to be exposed in the dockerfile (used to build the image) also

Not true. 

  • Author

So am I just out of luck then? Seems like there is no way to do this...

3 hours ago, vanik said:

So am I just out of luck then? Seems like there is no way to do this...

The reason you can't access it at port 80 is that you need to be root to use that port.. If this is our container, it's running as user abc and do not have privileges to use port 80.

Edited by saarg

  • Author

Ahh, I see. I assume running a container as root is ill advised from a security perspective?

7 minutes ago, vanik said:

Ahh, I see. I assume running a container as root is ill advised from a security perspective?

That is correct. 

Why do you need to run it on port 80? 

  • Author

I still have to give the URL to people for them to bookmark it. The question is if it’s possible to use port 80

16 hours ago, vanik said:

I still have to give the URL to people for them to bookmark it. The question is if it’s possible to use port 80

You still have to give them the link for them to use it, so what is the difference? 

  • Author
17 hours ago, vanik said:

The question is if it’s possible to use port 80

Just now, vanik said:
17 hours ago, vanik said:

The question is if it’s possible to use port 80

That question have been answered. 

  • Author

Great.

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.