Docker logs: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
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 &#91;[[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.