rancher-sandbox / rancher-desktop

Container Management and Kubernetes on the Desktop
https://rancherdesktop.io
Apache License 2.0
6.03k stars 285 forks source link

Remove Listener Creation for Containerd Events #7782

Closed Nino-K closed 6 days ago

Nino-K commented 6 days ago

Historically, when containerd events were received, we created listeners to leverage the WSL listener forwarding feature. This was necessary because containerd, unlike Docker, didn't create listeners for running containers. Instead, it routed traffic through iptables rules in the CNI-HOSTPORT-DNAT chain, manipulating container traffic directly.

However, the WSL listener forwarding feature is no longer in use with the new namespaced network configuration. As a result, we no longer need to create listeners for each running container manually, and it should be removed.