Too Long; Didn't Read
By default, Docker containers emit logs to the stdout and stderr output streams. These logs are stored on the Docker host in JSON files by default. The default logging driver is json-file. You need to ship logs to a central location and enable log rotation for your Docker containers. You collect the logs with a log aggregator and store them in a place where they’ll be available forever. The solution is to deploy a dedicated Docker Log Shipper to collect logs and collect them.