VLAN trunk inside VM for Docker

myscha

New Member
Jun 10, 2024
4
0
1
Hello,

currently I have a VLAN aware bridge in Proxmox and I'm running two separate VMs. Each acts as a Docker host in a dedicated VLAN (one in VLAN 3 and one in VLAN 4). VLAN 3 is my private LAN and VLAN 4 is my guest LAN. Now I'd like to add Pi-hole as Docker container and it would be great if it could be used for both VLANs. Otherwise I'd have to install and support it two times and I'd like to avoid that.

Is there a way to forward the whole VLAN trunk into the VM and map one or more VLANs to a Docker contaier inside?

You can see the current config of the network and the two VMs on the screenshots.
 

Attachments

  • Bildschirmfoto_20240712_211406.png
    Bildschirmfoto_20240712_211406.png
    18.2 KB · Views: 6
  • Bildschirmfoto_20240712_211443.png
    Bildschirmfoto_20240712_211443.png
    50 KB · Views: 6
  • Bildschirmfoto_20240712_211455.png
    Bildschirmfoto_20240712_211455.png
    49.9 KB · Views: 6