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.

Assigning my docker an ip on a custom docker network

Featured Replies

this is my first attempt at creating a docker container and running it on UnRaid.

 

I create my container using docker build.  I then try to run it with:

 

docker run --name heatmaster --ip='192.168.20.246' -d heatmaster

 

It runs, but I don't get assigned that ip address. I can get a console into it as well, but the IP address is a 127... address, not the one I assigned.

 

How do I got about assigning an ip address to the container?  I got my command line by looking at an UnRaid container when it started up.

 

thanks

david

  • Author

Ok I figured out that I need to at least do:

docker run --net br0.10 --name heatmaster --ip='192.168.10.246' -p="5000" -d hello-world

 

This does create it so that I can see in the Docker page the correct IP address:port.  It looks just like the others.

 

However, when I try to go to the port I get a permission denied message.

 

If I get a console, I can access at 127.0.0.1:5000 just fine.

 

Here is my container:

FROM ubuntu

RUN apt-get update
RUN apt-get -y install python3
RUN apt-get -y install python3-pip
RUN apt-get -y install curl
RUN pip install flask
RUN pip install playwright

ADD app.py /
ADD heatmaster.py /
WORKDIR /

USER nobody

EXPOSE 5000

CMD ["python3","app.py"]

 

Do I have to something on the CMD line to say to run on port 5000?

 

 

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.