Can't log from (fluentd) logdriver using service name in compose

前端 未结 1 1162
孤城傲影
孤城傲影 2021-01-14 00:03

I have the following setup in docker:

  • Application (httpd)
  • Fluentd
  • ElasticSearch
  • Kibana

The configuration of the logdr

相关标签:
1条回答
  • 2021-01-14 00:18

    This is not possible currently. The docker deamon which handles the log drivers is a process running on the host machine. It is not a service in your network and is therefore unable to resolve servicenames to IP's. See this github issue for more detailed explanations.

    You will have to publish a port for this to work.

    0 讨论(0)
提交回复
热议问题