First, we will start with the basics of Docker logging by looking at logging on a single host Docker node, as shown in the diagram that follows. As you may recall, Docker automatically captures the standard error and standard output streams from running containers and directs them to the Docker log files. In this section, we will explore what that really means in terms of where the logs go, and how to get to them.
This diagram represents the default log configuration settings for a Docker Linux daemon. On the left-hand side of the diagram, you can see a Docker Engine represented with a box. Underneath the Docker Engine box, we can see how the Docker Engine uses systemd to write to the system logs on the host's systemd-journald log. The system captures the output from the Docker daemon to this...