windows icon indicating copy to clipboard operation
windows copied to clipboard

add tun device

Open jumoog opened this issue 1 year ago • 2 comments

required for containerd.io 1.7.24. Otherwise Samba can't be used.

jumoog avatar Dec 01 '24 13:12 jumoog

The tun device is normally created automaticly, see https://github.com/qemus/qemu-docker/blob/a53c6fa6d20beaac406e9a79058d8cae146bdb22/src/network.sh#L180

Thats why its not added in the compose file. So instead of adding it, it would be more interesting to diagnose why the automatic creation fails.

kroese avatar Dec 01 '24 13:12 kroese

It happens with all docker containers that need tun devices. That was the only thing that worked. It happened after updating docker on Ubuntu 24.

jumoog avatar Dec 01 '24 14:12 jumoog

Seems to be a bug in containerd: https://github.com/containerd/containerd/issues/11078

Lets hope they solve it quickly.

kroese avatar Dec 01 '24 14:12 kroese

It happend in https://github.com/opencontainers/runc/commit/2ce40b6ad72b4bd4391380cafc5ef1bad1fa0b31

Obviously, a container should not have access to tun/tap device, unless it is explicitly specified in configuration. Now, removing this might create a compatibility issue, but I see no other choice.

And I don't think that will be reverted

jumoog avatar Dec 01 '24 15:12 jumoog