Skip to content
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 running on Localhost cannot be accessed with experimental tunnel and Moby engine in WSL2 #5396

Closed
pshutt97 opened this issue Aug 25, 2023 · 3 comments · Fixed by rancher-sandbox/rancher-desktop-agent#53 or rancher-sandbox/rancher-desktop-agent#54
Assignees
Milestone

Comments

@pshutt97
Copy link

Actual Behavior

When using the experimental tunnel feature and the Moby engine with WSL2, containers running on localhost with WSL cannot be accessed on the host machine or via browser.

Steps to Reproduce

Use Moby container engine.
Run container on localhost or 127.0.0.1.
Use experimental tunnel feature on WSL2.
Try to access the running container from browser localhost with the port.

Result

The running container cannot be accessed from a browser or the host machine.

Expected Behavior

The running container should be able to be accessed from a browser or the host machine.

Additional Information

No response

Rancher Desktop Version

1.9.1

Rancher Desktop K8s Version

N/A

Which container engine are you using?

moby (docker cli)

What operating system are you using?

Windows

Operating System / Build Version

Windows 11

What CPU architecture are you using?

x64

Linux only: what package format did you use to install Rancher Desktop?

None

Windows User Only

Cisco AnyConnect, Zscaler, Microsoft Defender and Symantec Endpoint Protection

@IsaSih
Copy link
Contributor

IsaSih commented Sep 19, 2023

By testing this issue, here are my findings:

  1. When I enable the networking tunnel BEFORE running the container in localhost, I can successfully access it via browser/ host machine
  2. When I first run the container on localhost and AFTER enable the networking tunnel, then I can't connect to localhost neither via browser nor via the host machine.

I'm reopening the issue so that @Nino-K can investigate this further.

@Nino-K
Copy link
Member

Nino-K commented Oct 27, 2023

@pshutt97 Thanks for reporting this, I managed to repro this by restarting Rancher Desktop as @IsaSih mentioned in her comment. The fix should be included in 1.11.

@pshutt97
Copy link
Author

Awesome!! Thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment