gliderlabs / registrator

Service registry bridge for Docker with pluggable adapters
http://gliderlabs.com/registrator
MIT License
4.66k stars 912 forks source link

Registrator showing an API error (400) and shutting down #573

Open arnoldst opened 7 years ago

arnoldst commented 7 years ago

Server: Version: 3.0 API version: 1.20 (minimum version ) Go version:
Git commit:
Built: Mon Jun 26 22:20:15 2017 OS/Arch: Bluemix Containers/ Experimental: false

Description of the problem: I'm trying to run consul and registartor on IBM Bluemix. So its a remote docker engine.

How reproducible: Ever time.

Steps to Reproduce: Log into bluemix ( bx login), bx ic init, then set the following environment properties export DOCKER_HOST=tcp://containers-api.eu-gb.bluemix.net:8443 export DOCKER_CERT_PATH=/Users/steve/.ice/certs/containers-api.eu-gb.bluemix.net/48b3fe26-09e7-4bc4-bdc5-6c4686fd22f2 export DOCKER_TLS_VERIFY=1

Actual Results: container just shuts down.

Expected Results:

Additional info: It would be good to know what the cotnainer is trying to do after it says Listening for Docker events.

arnoldst commented 7 years ago

Ok - after more digging I suspect I know whats going on. Bluemix's docker host url is tcp://containers-api.eu-gb.bluemix.net:8443. Which is https.
So I'm guessing the registrator uses http by default.

So I think the question is - how to get the registrator to talk https to the docker host ???