Adds DNS names of Docker containers in your hosts file, for resolving locally.
10K+
Container dns outside of your software defined network. Every container's DNS name gets put in your hosts file so you can reach your containers from your host directly.
The code of this container originates from https://github.com/dvddarias/docker-hoster He also has a container right here: https://hub.docker.com/r/dvdarias/docker-hoster Unfortunately, the container of dvddarias dates from 2018, uses an non-official base image, and isn't multi-arch.
Source of this container: https://github.com/solipsist01/dockerfiles/tree/master/docker-hoster
Gets rebuilt every sunday: https://github.com/solipsist01/dockerfiles/blob/master/.github/workflows/docker-hoster.yml
version: "2.4"
services:
dockerhoster:
container_name: docker-hoster
image: solipsist01/docker-hoster
volumes:
- /var/run/docker.sock:/tmp/docker.sock
- /etc/hosts:/tmp/hosts
Content type
Image
Digest
sha256:85441c112…
Size
21.7 MB
Last updated
7 days ago
docker pull solipsist01/docker-hoster