Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description


Publish all the containers

Publish/remove docker container configs to etcd/consul as they are started and stopped

Useful so other containers on the network can listen in realtime (via etcd/consul) for instructions embedded in a containers environment

Totally stolen from the registrator codebase and modified to publish container details not port mappings.


$ docker pull binocarlos/fleetstreet

You can also just grab the binary from the stage/ folder


Start fleetstreet container passing the following arguments and the etcd or consul endpoint.

  • -ip - the IP address of the docker host
  • -var - the name of the environment variable that is the container name (FLEETSTREET_NAME)
  • -ensure - ensure that the environment variable is set before publishing (false)
$ fleetstreet -ip=x.x.x.x -var=FLEETSTREET_NAME -ensure <registry-uri>

The registry-uri indicates if you are using etcd or consul.

An example running fleetstreet using the etcd endpoint:

$ docker run -d \
  -v /var/run/docker.sock:/var/run/docker.sock \
  --name fleetstreet \
  binocarlos/fleetstreet --ip etcd://

An example running fleetstreet using the consul key/value endpoint:

$ docker run -d \
  -v /var/run/docker.sock:/var/run/docker.sock \
  --name fleetstreet \
  binocarlos/fleetstreet --ip consul://

To run the docker container you must mount the docker socket as a volume.

container data

Each container writes a single record to the key value store containing JSON with the following properties:

  • ID - the global id for the container (more below)
  • IP - the IP address of the host the container is running (controlled by -ip)
  • Container - the data (docker inspect) for the container

container ids

The id used to save the container has a default format of:


If you start the container with an environment variable called FLEETSTREET_NAME - that will be used for the container id:

$ docker run -d \
  --name mytest \
  -e FLEETSTREET_NAME=mytest \
  binocarlos/bring-a-ping --timeout 100

The data for this container would be written to:



To Jeff Lindsay for registrator



Docker Pull Command
Source Repository