Docker logs: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Docker Client Operations") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
* [[Docker_Client_Operations#Queries|Docker Client Operations]] | * [[Docker_Client_Operations#Queries|Docker Client Operations]] | ||
=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 <tt>docker logs</tt> command. | |||
docker [[[Docker_logs#-f.2C_--follow|-f]]] <''container-id''> | |||
=Options= | |||
==-f, --follow== | |||
Follow log output. |
Latest revision as of 02:13, 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.