Add environment variable to control host loopback (DOCKERD_ROOTLESS_ROOTLESSKIT_DISABLE_HOST_LOOPBACK)#568
Conversation
|
I don't love the idea of maintaining more lines/complexity here -- as I've noted over in #543 (review), I'm not actually convinced continuing to maintain the |
Is there a way to configure the regular As @MadLittleMods mentioned, the key thing we are trying to accomplish is communication from guest containers to a process running in the host container to co-ordinate some testing. Investigation along these lines seems to indicate that for what we want to do, we'll need |
|
I guess, to rephrase, when you say the In our use scenario, we've found that using the |
Add environment variable to control host loopback (
DOCKERD_ROOTLESS_ROOTLESSKIT_DISABLE_HOST_LOOPBACK)Based on
moby/moby->contrib/dockerd-rootless.sh#L24-L25(added in moby/moby#47352).This kind of workaround is mentioned in various places like https://stackoverflow.com/questions/72500740/how-to-access-localhost-on-rootless-docker.
Our actual use case is setting up some self-hosted GitHub runners with a rootless Docker-in-Docker setup which works fine except that nested containers created within the
runnercontainer are unable to contacthost.docker.internal(Connection refused). (usingactions/actions-runner-controller(docs)). With this change, we plan to maphost.docker.internal:10.0.2.2and does seem to work.