Since Docker 1.6.0 there is a concept called ‘labels’, which is pretty much exactly what I need for service discovery. As I have mentioned before, I’m (ab)using ENV-vars for this. That works fine, but that has the (probably undesired) side effect that the container itself has access to these variables.