Registrator not listening to docker events

Consul is running fine

Registrator is running fine, but it’s not listening to docker events.

  • docker-compose volume not appearing in container
  • Docker: private registry access
  • Segmentation Fault (core dumped) while running phpunit
  • What is the proper way of deploying versioned applications with docker?
  • Docker: hashicorp/boot2docker fails to download behind corporate proxy
  • What's Docker easiest way to deploy Rails on production?
  • ran registrator as :

    docker run -d -h 10.153.6.131 -v /var/run/docker.sock:/tmp/docker.sock progrium/registrator consul://10.153.6.131:8500

    also tried

    docker run -d -h 10.153.6.131 -P -v /var/run/docker.sock:/tmp/docker.sock progrium/registrator consul://10.153.6.131:8500

    docker logs 73acf7b7f687b6c02e35ccfa6e2a41e42eea18a27292befd87d65fc665d20320
    2014/10/07 21:39:49 registrator: Using consul registry backend at consul://10.153.6.131:8500

    But not “Listening to docker events”

    help please.

  • Create a volume in docker from windows host
  • How can i configure the macOS firewall to access my docker nginx container?
  • Docker Beta on OS X: configure where images and logs are saved
  • Kubernetes fails to pull Docker image from artifactoryonline.com
  • Giving a Docker container configuration access to a device
  • docker-compose stop not working after docker-compose -p <name> up
  • One Solution collect form web for “Registrator not listening to docker events”

    I had a somewhat similar issue with etcd. Before listening for new events, registrator tries registering the services which are already running. I don’t know much about consul (and did not know much about etcd either) but looking at the http communication give me the hint what was going wrong. Try

    tcpdump -i any -A -s 0 host 10.153.6.131 
    

    Assuming you see traffic, watch closely to the response of consul. I would expect it to respond with HTTP error codes which may point you to the root cause. If you don’t see traffic, double check addresses and iptable configuration.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.