Open gbraad opened 9 months ago
@n1hility We should both be checking if the port is already in use and suggest an alternative. Though, we might wanna solve this in gvproxy... as multiple instances of a WLS2 machine might run into the same issue.
There is re-assignment code, but this might be used more generically: https://github.com/containers/podman/commit/63a8926e96203cf0070e0b0cb14e79815942f0a0
A friendly reminder that this issue had no activity for 30 days.
@gbraad @n1hility any movement on this one?
I think I should fix this / work around on the wsl side. We can pick an unused port. It’s not actually used in this particular use case.
A friendly reminder that this issue had no activity for 30 days.
@n1hility Was this fixed with the port re-assign logic in machine?
Issue Description
With the recent introduction of usermode networking, the network stack of podman machine on Windows uses port 2222 to forward ssh. This can conflict with the default of CRC which will ALWAYS use usermode networking and the 2222 port forward for ssh.
Steps to reproduce the issue
n/a
Describe the results you received
Unable to start either depending who comes first
Describe the results you expected
We should both be checking if the port is already in use and suggest an alternative.
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Windows with Podman machine on WSL2 and CRC
Additional information
Usermode networking
https://github.com/crc-org/crc/issues/3855