문제

Within docker container can we get the host ip and the random ports allotted for the ports exposed . The use case is to send a serf event to join the cluster with the host ip and random port allotted by docker daemon so that the load balancer can update itself. I like to send the event from within the container with these details without any dependency on the host machine

도움이 되었습니까?

해결책

Jérôme Petazzoni : For now, you have to inject that info yourself with "-e"; but the upcoming beam protocol will help→https://github.com/dotcloud/docker/pull/4602

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top