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.

Custom Docker Networks in 6.6.0

Featured Replies

I posted about this issue in the main 6.6.0 release thread (link), but wanted to make a separate thread specifically on this issue.

 

On 6.5.3, I have 3 separate docker networks:

 

  • br0: 192.168.20.0/24. Gateway 192.168.20.1
  • br1.10: 192.168.10.0/24. Gateway 192.168.10.1. (VLAN 10)
  • br1.20: 192.168.20.0/24. Gateway 192.168.20.254 (VLAN 20)

 

Note: br0 and br1.20 are in the same subnet, but have different gateways. I do this so dockers in br1.20 can connect to both the Unraid host, and dockers in all subnets (circumventing macvlan from blocking the connection between docker and host)

 

All 3 networks have no DHCP pool, i manually set them for my docker containers.

 

Now the problem. When I upgraded to 6.6.0, I could still see my 3 docker networks in docker settings, but I could no not select br1.20 in Update Container, under Network Type, it is simply not listed.

 

Can someone let me know how I can do this, preferably through the GUI?

 

Can you post a screenshot of your Docker settings page (enable advanced view)

And what is the output of

docker network ls

 

  • Author
10 hours ago, bonienl said:

Can you post a screenshot of your Docker settings page (enable advanced view)

And what is the output of


docker network ls

 

 

Here are my settings under 6.5.3 / 6.6.0

 

IPv4 custom network on interface br0:
Subnet: 192.168.20.0/24 Gateway: 192.168.20.1 DHCP pool: not set

IPv4 custom network on interface br1.10:
Subnet: 192.168.10.0/24 Gateway: 192.168.10.1 DHCP pool: not set

IPv4 custom network on interface br1.20:
Subnet: 192.168.20.0/24 Gateway: 192.168.20.254 DHCP pool: not set
NETWORK ID          NAME                DRIVER              SCOPE
b9b4178725d9        br0                 macvlan             local
0b839cad0823        br1.10              macvlan             local
37bff31973a8        br1.20              macvlan             local
e1ef694e36c7        bridge              bridge              local
f9bfd58f90c4        host                host                local
7759dbce282b        none                null                local

 

Under 6.5.3, I can set the network type to any of the networks when adding/updating a container. In 6..6.0, I can pick everything except br1.20

I wonder if the limitation you are seeing is caused by having "two" subnets with the same addressing range but different gateways to work around docker not even allowing the docker network to be defined in more than one NIC. Is that it @bonienl?

 

When no DHCP pool is specified, docker takes the complete subnet as pool. This creates an overlap between interface br0 and br1.20.

Use different DHCP pools and try again.

 

  • Author
18 hours ago, bonienl said:

When no DHCP pool is specified, docker takes the complete subnet as pool. This creates an overlap between interface br0 and br1.20.

Use different DHCP pools and try again.

 

That was it, thank you!

  • 3 years later...
On 9/25/2018 at 10:07 AM, CrimsonTyphoon said:

That was it, thank you!

Could you please tell me how to change the DHCP pool settings? I have exactly the same problem.

Settings - Docker with the service stopped.  Switch to Advanced view

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.