Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

docker --add-host host-gateway is not supported on Rancher Desktop #599

Description

@joebowbeer

The --add-host=host.docker.internal:host-gateway solution does not work on Rancher Desktop with Moby docker runtime.

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 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.

Relates: #281

The Moby docs for --add-host also mention that host-gateway is (only) a Docker Desktop thing:

Docker Desktop automatically resolves this hostname

Given that there are several ways to install docker locally, including WSL, Colima, Podman, and Rancher Desktop (Moby), I think the documentation may need further revision.


By the way, even without adding host-gateway, I am currently receiving an error when trying to add a deployment:

error when calling 'http://host.docker.internal:9080/': client error (SendRequest), http2 error
    restate.error.code: META0003

This is happening with Rancher Desktop (moby) on both Mac and Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions