Creating TAP device in a linux container running on macOS host

Hi,

I’m trying to create a TAP device in a Linux container (CentOS 7) that is running on a macOS host.

But I get errors, eg:

[root@daa7330d7b14 /]# ip tuntap add tap0 mode tap
open: No such file or directory

Or with socat:

[root@daa7330d7b14 /]# socat TUN,tun-type=tap,iff-up target.example.com:1234
2019/11/28 06:55:01 socat[36] E open("/dev/net/tun", 02, 0666): No such file or directory

Is there an inherent limitation of Docker on macOS that make this impossible, or is that something missing in that specific container ?

Thanks

1 Like