Skip to content

Conversation

@MadLittleMods
Copy link
Collaborator

Try 10.0.2.2 for self-hosted GitHub runners

Requires docker-library/docker#568 to work.

c.f. DOCKERD_ROOTLESS_ROOTLESSKIT_NET=slirp4netns and DOCKERD_ROOTLESS_ROOTLESSKIT_DISABLE_HOST_LOOPBACK=false

rootless: Add support for enabling host loopback by setting the DOCKERD_ROOTLESS_ROOTLESSKIT_DISABLE_HOST_LOOPBACK environment variable to false (defaults to true). This lets containers connect to the host by using IP address 10.0.2.2. moby/moby#47352

-- https://docs.docker.com/engine/release-notes/26.0/

# * DOCKERD_ROOTLESS_ROOTLESSKIT_DISABLE_HOST_LOOPBACK=(true|false): prohibit connections to 127.0.0.1 on the host (including via 10.0.2.2, in the case of slirp4netns). Defaults to "true".

-- https://github.com/moby/moby/blob/b649e272bb0253fe766069966416b9330a2e38c0/contrib/dockerd-rootless.sh#L18

Pull Request Checklist

c.f. `DOCKERD_ROOTLESS_ROOTLESSKIT_NET=slirp4netns`
and `DOCKERD_ROOTLESS_ROOTLESSKIT_DISABLE_HOST_LOOPBACK=false`

> rootless: Add support for enabling host loopback by setting the `DOCKERD_ROOTLESS_ROOTLESSKIT_DISABLE_HOST_LOOPBACK` environment variable to `false` (defaults to `true`). This lets containers connect to the host by using IP address 10.0.2.2. [moby/moby#47352](moby/moby#47352)
>
> _-- https://docs.docker.com/engine/release-notes/26.0/_

> ```
> # * DOCKERD_ROOTLESS_ROOTLESSKIT_DISABLE_HOST_LOOPBACK=(true|false): prohibit connections to 127.0.0.1 on the host (including via 10.0.2.2, in the case of slirp4netns). Defaults to "true".
> ```
>
> *-- https://github.com/moby/moby/blob/b649e272bb0253fe766069966416b9330a2e38c0/contrib/dockerd-rootless.sh#L18*
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