What is the best way to pass 802.1q tags through to a guest OS running docker containers?

signal15

New Member
Mar 5, 2024
3
0
1
I want to be able to create containers and drop them into various VLANs. I have tagging working to the PVE and can create VMs and drop them into whatever VLAN. I just want to know how I can somehow pass those tags to a ubuntu guest running docker containers so I can deploy containers in different VLANs.

Note that I do not want to use LXC, which is why I have this ubuntu guest.
 
Hi,

I'm having the same question. Would you mind sharing your current solution?

I have the following setup at the moment and from a Proxmox point of view it works.
1718055316805.png

But there are 2 problems:
- My docker host also runs as VM in Proxmox and I would like to be able to select the VLAN inside Docker for each stack/container. I don't know how to proceed to achieve this. Currently I have multiple docker VMs assigned to the according bridges.
- As I have no dedicated management interface on my Proxmox server the UI can be reached from each VLAN. But it should be accessible only within a specific VLAN and ideally without making use of special firewall rules.