Start With the Container's Output
Well-behaved containerized applications log important events to standard output and standard error. Docker can then collect and display those logs.
If an application writes only to an internal file, configure a logging strategy appropriate to the platform rather than relying on ephemeral container storage.
ADVERTISEMENT