windows
windows copied to clipboard
add tun device
required for containerd.io 1.7.24. Otherwise Samba can't be used.
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.
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.
Seems to be a bug in containerd: https://github.com/containerd/containerd/issues/11078
Lets hope they solve it quickly.
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