registrator icon indicating copy to clipboard operation
registrator copied to clipboard

How to registrator with docker net=host?

Open woshihaoren opened this issue 9 years ago • 3 comments

Hi: My docker containers use host network, How to registrator?

woshihaoren avatar Jan 08 '16 08:01 woshihaoren

Provide the -p hostport:containerport along with --net=host then it works.

hookenz avatar Feb 09 '16 20:02 hookenz

Verified working on latest Docker here. This can be closed, I think.

tilgovi avatar Apr 29 '16 20:04 tilgovi

It does not work for docker-compose. If you try expose port with syntax port:port + network_mode: "host" docker-compose print error. So you cannot "publish" port in this manner.

Any advices?

mrkeuz avatar Feb 05 '21 07:02 mrkeuz