No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circleci
.dockerignore
Dockerfile
LICENSE
README.md
etcd.tmpl
requirements.txt

README.md

docker-register

circleci

A simple etcd service discovery container based on docker-gen. Containers with exactly one port published to the host will be registered in etcd at /backends/<image_name>/<image_tag>/<image_id>, e.g. /backends/redis/latest/2f2ffba3ddf1

Usage

docker run -d \
           -e ETCD_HOST="127.0.0.1:4001" \
           -v /var/run/docker.sock:/var/run/docker.sock \
           vektorlab/docker-register:latest

An optional DOCKER_HOST variable can be provided as well(defaults to unix://var/run/docker.sock)