hostlocal icon indicating copy to clipboard operation
hostlocal copied to clipboard

Host-level localhost for containers

hostlocal

Adds the link-local address 169.254.255.254 (hostlocal.io) to your loopback interface.

$ docker run --rm --privileged --net=host gliderlabs/hostlocal

Now anything listening on 0.0.0.0 on the host (including --net=host containers) can be accessed with the hostname hostlocal.io from inside any container on that host.

Credit

This is a "productized" version of Yelp's fine work.