How can I use nginx as a dynamic load balancing proxy server on Bluemix?
The containers service on Bluemix doesn't expose that docker socket (not surprising, it would be a security risk to the compute host). A couple of alternate ways to accomplish what you want:
- something like amalgam8 or consul, which is basically doing just that
- similar, but self written - have a shared volume, and then eachcontainer on startup adds a file to that shared volume saying what itis, plus its private ip. nginx container has a watch on the sharedvolume, and reloads when those change. (more work than amalgam8 orconsul, but perhaps more control)