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

Added FAQ item about host-gateway #378

Merged
merged 5 commits into from
Oct 23, 2024
Merged

Conversation

gunamata
Copy link
Contributor

@gunamata gunamata commented Jun 7, 2024

No description provided.

Signed-off-by: Gunasekhar Matamalam <[email protected]>
@gunamata gunamata requested review from jandubois and Nino-K June 7, 2024 16:12
docs/faq.md Outdated
@@ -139,6 +139,10 @@ If you want to change the behavior of the mounts, that will also require [additi
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow
```

#### **Q: Can I map `host.docker.internal` to `host-gateway` with the flag `--add-host`?

**A:** No. The special value `host-gateway` is something Docker Desktop specific and is not supported in Rancher Desktop yet. However, you can access services running on the host machine from within a container via `host.docker.internal` without passing the `--add-host` flag.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also mention host.rancher-desktop.internal?

See here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nino-K , I included host.rancher-desktop.internal in the FAQ item. Please take a look.

… answer and also added the file to 1.15 and 1.16 versioned docs

Signed-off-by: Gunasekhar Matamalam <[email protected]>
…p.internal in the FAQ answer

Signed-off-by: Gunasekhar Matamalam <[email protected]>
@gunamata gunamata requested a review from Nino-K October 22, 2024 14:57
docs/faq.md Outdated
@@ -139,6 +139,10 @@ If you want to change the behavior of the mounts, that will also require [additi
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow
```

#### **Q: Can I map `host.docker.internal` or `host.rancher-desktop.internal` to `host-gateway` with the flag `--add-host`?

**A:** No. The special value `host-gateway` is something Docker Desktop specific and is not supported in Rancher Desktop yet. However, you can access services running on the host machine from within a container via `host.docker.internal` or `host.rancher-desktop.internal` without passing the `--add-host` flag.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a tiny suggestion regarding the rewording:

No, the special value host-gateway is specific to Docker Desktop and is not yet supported in Rancher Desktop. However, you can access services running on the host machine from within a container using host.docker.internalor host.rancher-desktop.internal without passing the --add-host flag.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nino-K , I applied your recommendation.

@gunamata gunamata requested a review from Nino-K October 23, 2024 16:23
@Nino-K Nino-K merged commit 9d36027 into rancher-sandbox:main Oct 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants