HUB
Sign inSign up

solipsist01/docker-hoster

By solipsist01

•Updated 6 days ago

Adds DNS names of Docker containers in your hosts file, for resolving locally.

Image
0

50K+

solipsist01/docker-hoster repository overview

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

Tag summary
Recent tags
Content type
Image
Digest
sha256:1bbea27b7…
Size
23.7 MB
Last updated
6 days ago
docker pull solipsist01/docker-hoster:latest