August 9, 20178 yr 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 docker networks.txt
August 10, 20178 yr 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)
August 10, 20178 yr 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.