Docker logs: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
Used to fetch the logs of a container. Any output directed to stdout in a running container is captured in a log file that can be viewed with <tt>docker logs</tt> command. | Used to fetch the logs of a container. Any output directed to stdout in a running container is captured in a log file that can be viewed with <tt>docker logs</tt> command. | ||
docker [-f] <''container-id''> | |||
=Options= | |||
==-f, --follow== | |||
Follow log output. |
Revision as of 02:12, 20 November 2017
Internal
Overview
Used to fetch the logs of a container. Any output directed to stdout in a running container is captured in a log file that can be viewed with docker logs command.
docker [-f] <container-id>
Options
-f, --follow
Follow log output.