Pipe Log Output to STDOUT with Docker
Since Docker filesystems are ephemeral, it's important to take into account anything that writes or appends to disk, such as log files. It is standard practice when running Docker containers to pipe log file output to the console, to allow for simple diagnostic and to avoid append-only files from consuming disk space.
In this lesson, we’ll show you how to append output to
STDOUT, and how to view log output from your running containers.