Difference between revisions of "Docker logs"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 
<code>docker [[logs]]</code> command allows to view the [[logs]] of a [[container]]. https://docs.docker.com/engine/reference/commandline/logs/
 
<code>docker [[logs]]</code> command allows to view the [[logs]] of a [[container]]. https://docs.docker.com/engine/reference/commandline/logs/
 
  
 
  docker logs CONTAINER_NAME [[2]]>[[&1]] | [[grep]] -v INFO
 
  docker logs CONTAINER_NAME [[2]]>[[&1]] | [[grep]] -v INFO
  
 
  docker logs -f --tail 10 CONTAINER_NAME
 
  docker logs -f --tail 10 CONTAINER_NAME
 
  
 
  --[[log-driver]]=[[journald]]
 
  --[[log-driver]]=[[journald]]

Revision as of 18:15, 24 February 2022

Advertising: