Logging drivers and log rotation
Select an icon to see what it is.
Step 5 of 6
Other drivers send logs elsewhere
journald and syslog hand the lines to the host's logging service, and other drivers ship them to a log system. journald can be read back by docker logs directly, and for drivers that cannot, such as syslog, Docker 20.10 and later keeps a local copy. The none driver stores nothing, and docker logs has nothing to show.
docker run --log-driver journald
each line becomes a journal entry with CONTAINER_NAME and CONTAINER_ID fields