-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker + Portainer: Macvlan support possibly flawed? #6223
Comments
Ironically, there was just two updates on my Pi related to the kernel. I will test to see if this changed anything. |
ok. Just played with
and
BUT, there is always a BUT, NPM container is not able to reach the host system (IP 192.168.0.17) where Docker is running on
And this is your main issue. The container is not able to communicate with the host. And there we go https://forums.docker.com/t/host-and-containers-cannot-communicate-macvlan/112968/2 So, it's working as expected and further Docker/network configuration needed to allow communication between Docker host and Container connected to |
I'm not trying to communicate with the host, I was trying to communicate with another device on the host nework. The same issue appears to be happening even without macvlan. So, it's likely not a macvlan issue, but something else. |
I believe that this does not apply when creating the macvlan within Portainer, as it is a two step process where you create a configuration and then create the vlan. It effectively creates the 2nd virt interface reference in this posting above. They also point out the reason for the need for the macvlan to set up port forwarding on a firewall/router/gateway. |
Yesterday I tried |
I believe this is why the documentation for macvlan specifically states to set an IP range that is not currently in use by the network, as the first available in IP in the defined range will be assigned. |
Don't think that the IP is assigned by the DHCP server. It's done by Docker itself. Anyway STATIC IP is highly recommended for the container to ensure same IP address all the time. Otherwise no guarantee that your port forwarding stay valid if IP of container is changing. |
Anything left here? Does it work in the meantime? Also, which SBC is it actually? |
I haven't come back to this, as I basically gave up trying to make it work. I move NPM to an Unraid server and it works flawlessly. |
ok I'm going to close this one. Feel free to reopen if needed. |
I meant the kernel, not Docker itself, which may not support all features. However, also current Quartz64 images do fully support all this. Only the highly experimental RISC-V VisionFive 2 does not, but Docker doesn't start up there at all.
Did you check whether anything is listening on port 80 on the host? How did you setup the redirects? Are the VLANs up as expected (
ip a
)?EDIT: Ah, let's not spam this software request. Feel free to open a new issue for investigating this case, instead.
Originally posted by @MichaIng in #4417 (comment)
The text was updated successfully, but these errors were encountered: