docker - Consul and registrator to single host, it's possible? -
i need use consul , registrator manage multiple docker container single host, use 'links" docker-compose.yml, remove links , use consul. have tested consul , registrator single host, ip assigned same of node. it's possible registrator assign ip of docker container instead of node ip?
it's possible using argument -internal
.
from docs:
if argument
-internal
passed, registrator register docker0 internal ip , port instead of host mapped ones. (etcd, consul, , skydns2 now).-internal
argument must passed before<registry-uri>
argument.
Comments
Post a Comment