-
Notifications
You must be signed in to change notification settings - Fork 61
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
Conversation
Signed-off-by: Gunasekhar Matamalam <[email protected]>
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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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]>
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. |
There was a problem hiding this comment.
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.internal
or host.rancher-desktop.internal
without passing the --add-host
flag.
There was a problem hiding this comment.
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.
Signed-off-by: Gunasekhar Matamalam <[email protected]>
No description provided.