Docker logs: Difference between revisions
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
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''> | docker [[[Docker_logs#-f.2C_--follow|-f]]] <''container-id''> | ||
=Options= | =Options= |
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.