Docker Community Forums

Share and learn in the Docker community.

Docker host networking restrict network interface access


(Maarten Rijke) #1

Hi all,

I was wondering if it would be possible for a container configured with ‘host’ networking, to restrict the interfaces that it can see from the host?

For example, if I have a host with four interfaces, eth0 until eth3, can I configure the container somehow to only be able to see eth0 and eth1?

Thanks in advance!

Greetings,

Maarten