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 issues - macvlan networked containers cannot access internet

Featured Replies

Hello,

 

I am new to these forums, but I have had unraid for a few months now and have the basics down.

 

Basically, I upgraded to the 6.4 prerelease when I saw that macvlan support had been officially added (I had a mess of things before when I tried it using the CLI).

 

I have a slightly more complicated network setup and have a couple other VLANs going into unRAID. I figured I'd start with an easy container, so I pulled down the MineOS one by yujiod.

 

This is where things started getting odd; I had everything working properly, and I decided to turn off docker so I could add another VLAN to unRAID's network settings. After that, my MineOS container couldn't get internet. Unfortunately, I am not a docker-guru, so without ping, netstat, etc. I had a rough time diagnosing this, so I figured I'd delete the container and try again. Then the same thing happened (no internet).

 

I can't figure out why this isn't working. I tried letting docker give the container a DHCP lease (I wish I could let my main DHCP server do that, but that's another story), and I also tried setting a static IP. I can ping the container from a device on the same subnet (192.168.30.0/24) and with a device form another subnet (192.168.28.1/24) and still no luck. The subnet MineOS is on is my DMZ VLAN, but I have no outbound firewall rules setup; every other device on the DMZ VLAN can get out to the internet.

 

I am attaching a screenshot of my network settings (print to PDF screwed up the page slightly) in the hopes that someone can point out a dumb mistake I made.

 

Also, I don't care if anyone knows these IPs, so don't anyone worry that it's not fully sanitized; they're only private IPs.

 

TL;DR Docker macvlan networking is not allowing containers access to the internet; OP is puzzled

network.png

docker networks.txt

Did you switch MineOS to use this new VLAN?

 

If you did then you'll need to set the DNS server using --dns=8.8.8.8  (replace 8.8.8.8 which whatever dns server you wish)

  • Author

@Tuftuf You are a life saver! I TOTALLY forgot about the DNS settings. As it turns out, you can't set the DNS settings per VLAN network (at least in the unRAID GUI), so my container in the DMZ was trying to connect to my router (the DNS server), but on the wrong interface. I manually specified the my router's DMZ interface's IP Address, and it worked like a charm.

 

Now I'll just wait and cross my fingers that we can specify the DHCP server for a macvlan network... Based on what the Docker documentation says, that's a limitation on their end for now.

 

Kicking myself that I didn't remember this, but thanks again for the help!

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.