Skip to content

A simple resolver for name.docker to a container IP address.

Notifications You must be signed in to change notification settings

rsampaio/docker-dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Docker-dns

Very simple resolver for docker, a lot to improve until I can call it a "Discovery" system.

Installation

go get -v github.com/rsampaio/docker-dns/...

Usage

Run

$GOPATH/bin/docker-dns -i docker0

Start a container and get the ip from *.docker domain

# docker run -name mycontainer ubuntu /bin/bash

# host mycontainer.docker 172.17.42.1
Using domain server:
Name: 172.17.42.1
Address: 172.17.42.1#53
Aliases: 

mycontainer.docker has address 172.17.0.3

TODO

  • SRV entries for each container port
  • Dynamicaly remove entries based on docker events

About

A simple resolver for name.docker to a container IP address.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages