Difference between revisions of "Docker logs"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 3: Line 3:
  
 
  docker logs CONTAINER_NAME [[2]]>[[&1]] | [[grep]] -v INFO
 
  docker logs CONTAINER_NAME [[2]]>[[&1]] | [[grep]] -v INFO
 +
 +
[[docker logs --timestamps]]
  
 
  docker logs -f --tail 10 CONTAINER_NAME
 
  docker logs -f --tail 10 CONTAINER_NAME
Line 10: Line 12:
 
  --[[log-driver]]=[[journald]]
 
  --[[log-driver]]=[[journald]]
 
  --log-driver=[[json-file]]
 
  --log-driver=[[json-file]]
 +
 +
Rancher:
 +
[[docker logs kubelet]]
 +
[[docker logs etcd]]
 +
  
 
== Related ==
 
== Related ==
 +
* <code>[[docker --help]]</code>
 
* <code>[[docker container]] logs</code>
 
* <code>[[docker container]] logs</code>
 
* <code>[[docker-compose logs]]</code>
 
* <code>[[docker-compose logs]]</code>
Line 22: Line 30:
 
* <code>[[docker ps]]</code>
 
* <code>[[docker ps]]</code>
 
* [[Fluent Bit]]
 
* [[Fluent Bit]]
 +
* [[dockerd]]
 +
* [[/var/log/containers/]]
  
 
== See also ==
 
== See also ==
 +
* {{docker logs}}
 
* {{Docker logging}}
 
* {{Docker logging}}
* {{Docker}}
 
* {{containerd}}
 
  
 
[[Category:Docker]]
 
[[Category:Docker]]

Latest revision as of 10:46, 14 December 2023

Advertising: