docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.87k stars 288 forks source link

Docker Swarm Overlay encryption is broken in WSL2 #13450

Open ACoderLife opened 1 year ago

ACoderLife commented 1 year ago

Actual behavior

Error starting encrypted swarm network on windows docker desktop.

Expected behavior

Was working on older docker versions.

Information

I have raised the issue here, but so far have had no response: https://github.com/microsoft/WSL/issues/10029

Thanks!

ACoderLife commented 1 year ago

Has docker changed the way network encryption is done? WSL seem to think it was never supported:

https://github.com/microsoft/WSL/issues/10029

neersighted commented 1 year ago

This is related to security patches in Moby (Docker Engine); please see my comments at https://github.com/microsoft/WSL/issues/10029#issuecomment-1574440255 for an explanation.

There's not much we can do as the Microsoft team controls the WSL2 kernel; that being said, maybe we should leave this open as a tracking issue on our side while we work with Microsoft to get kernel support in.

ghost commented 1 year ago

It’s important to track dependent (outstanding) upstream issues related to DD. Folks must know that the DD team is dependent on those blocking issues being resolved. Maybe a special label could be applied?

cowwoc commented 2 weeks ago

The tickets were all closed on Microsoft's side. No one is working on this issue.

Can the Moby folks please ask Microsoft to reopen the issues? In the meantime, I've filed: https://github.com/microsoft/WSL/issues/12277

In the meantime, Docker for Windows should return a clean error message indicating that WSL2 does not support Swarm Overlay encryption, and this issue should be documented under https://docs.docker.com/desktop/features/networking/#known-limitations so developers can stop wasting their time trying to figure this out.