New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker Swarm + Windows Server 2022. Can't start connected to overlay network container with published ports (host mode) #42811
Comments
Any news? |
Any news? |
1 similar comment
Any news? |
@thaJeztah
|
@VuiDJi based on release notes this have been fixed on latest version https://github.com/moby/moby/releases/tag/v20.10.17 which you can find from https://download.docker.com/win/static/stable/x86_64/ However pls try that on server which haven't had other Docker versions installed earlier. |
@olljanat I've tried using https://github.com/moby/moby/releases/tag/v20.10.17 release, but unfortunately it still doesn't work: |
@VuiDJi after reading that pull request more carefully I noticed that it also needs update to Windows itself which is not yet publicly available. Look #43634 (comment) |
Docker on Windows Server 2022 crashes when trying to start connected to overlay network container with published ports (host mode).
For the same reason can't deploy any stack with published ports because docker always creates new overlay network for stack.
Steps to reproduce the issue:
IT WORKS!
GET AN ERROR: docker: Error response from daemon: failed to create endpoint test2 on network test-network: Bind for 0.0.0.0:80 failed: port is already allocated.
docker run -d --name test3 --publish published=8080,target=80,mode=host --network test-network mcr.microsoft.com/dotnet/samples:aspnetapp
GET AN ERROR: docker: Error response from daemon: failed to create endpoint test3 on network test-network: Bind for 0.0.0.0:8080 failed: port is already allocated.
Describe the results you received:
Can't use port publishing with host mode + overlay network.
Describe the results you expected:
Port publishing with host mode and overlay network should work
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:The text was updated successfully, but these errors were encountered: