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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!