antrea-io / antrea

Kubernetes networking based on Open vSwitch
https://antrea.io
Apache License 2.0
1.67k stars 367 forks source link

[Antrea 2.0] Drop support for Docker for Antrea on Windows #5630

Closed antoninbas closed 6 months ago

antoninbas commented 1 year ago

Describe what you are trying to solve

The K8s documentation lists 2 supported container runtimes on Windows:

Antrea on Windows supports containerd, and we do not claim any support for MCR. We also have a dedicated installation method for Docker (implying Docker CE / Moby, but should work for Docker Desktop as well), leveraging rancher/wins to manage Antrea as a Pod, but should we keep it?

Describe the solution you have in mind

I would like to propose dropping support for Docker on Windows in Antrea v2.0, for the following reasons:

In addition, we have these Antrea-specific reasons:

Describe how your solution impacts user flows

Antrea would no longer officially support Docker on Windows. We would remove instructions specific to Docker from the documentation.

Additional context

The Microsoft documentation lists the following container runtimes as supported on Windows:

The script for installing Docker CE still seems to be maintained: https://github.com/microsoft/Windows-Containers/tree/Main/helpful_tools

Docker Desktop is listed as the container runtime for Windows desktop, but:


Anthos clusters on VMware uses Antrea as the CNI for Windows Nodes (dataplane v2). The documentation states:

Containerd and Windows Dataplane V2 are now general availability as of version 1.11.

Docker and Flannel for Windows nodes will be deprecated in a subsequent release. We recommend that you update your configuration now, if applicable, to use containerd and Windows Dataplane V2 instead. See Update Windows Server configuration.

We are currently at version 1.16 of Anthos.


Even with the removal of dockershim in K8s v1.24, Docker can still be used as the container runtime thanks to https://github.com/Mirantis/cri-dockerd.

jayunit100 commented 1 year ago

Yeah this is the right path forward. Host Process containers are better in all ways. Hope we can get ovs to install in a windows pod someday also! Or at least to bootstrap windows components however is needed.

But yeah. I think you'll not find much docker windows antrea need in the windows k8s community.

antoninbas commented 1 year ago

Thanks for the feedback @jayunit100. We recently added a new installation method (for containerd of course) where OVS userspace daemons (ovs-vswitch / ovsdb-server) are run as a Pod, making the installation process simpler.

antoninbas commented 7 months ago

Now that https://github.com/antrea-io/antrea/pull/6019 has been merged, we just need to update the documentation, which I will take care of.