registrator
registrator copied to clipboard
How to registrator with docker net=host?
Hi: My docker containers use host network, How to registrator?
Provide the -p hostport:containerport along with --net=host then it works.
Verified working on latest Docker here. This can be closed, I think.
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?