-
Notifications
You must be signed in to change notification settings - Fork 289
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
Container port binding working randomly #7196
Comments
There is a known bug in WSL2 when coming from a shutdown state. Can you restart Windows and see if still happens? |
It's keep happening whatever i restart the Windows or WSL many times. I possible see some similar issues about this but not sure , could you point me out where the known bugs related issue it is? |
If a restart didn't fix it then is a different issue. Localhost port forwarding fails when Fast Startup is enabled microsoft/WSL#5298 |
But i can reproduce it. And i had disable fast boot by follow microsoft/WSL#5298 (comment) And i finally found that the higher ports (>10000) are working well?? |
Ah, that sounds like microsoft/WSL#5306 |
But the ports what i am using for container are not listing by the command output |
what's the output of |
|
See #3171 (comment) Mine:
|
Thanks a lot, it's working now. |
You're welcome. Just out of curiosity, when was the last time you did a Windows clean install? |
Almost 2 years ago
|
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Container listen all my defined ports after start.
Actual behavior
Container ports are listening randomly, like below
Restart the container will randomly change to one of the states describe above.
Information
Steps to reproduce the behavior
Dockerfile: https://github.com/discourse/discourse_docker/blob/master/image/discourse_dev/Dockerfile
How i boot container: https://github.com/discourse/discourse/blob/master/bin/docker/boot_dev
sudo netstat -tulpn | grep LISTEN
or whatever command to check port using you want, you may see one of the states i describe at Actual behavior section above, some ports are not listening at sometime.The text was updated successfully, but these errors were encountered: