Docker Community Forums

Share and learn in the Docker community.

Using the log-driver Options in docker will influence the server of container

docker

(Imekaku) #1

Hi, all:

###I met some of the doubts, and follows:

###One server will run in a container of docker, and I want to collect the log of server.

#####I found a way is that:
Collection Outside Container.
A single collection agent runs on the host and containers have a volume mounted from the host where they write their logs.

#####Another way:
using docker log-driver like:

docker run --log-driver=fluentd

#####I do not know using log-driver whether influces property of the container or not, and how much?

Kind regards,

Lee