docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docker [2022/01/31 10:29] tmaierdocker [2022/01/31 11:28] (current) tmaier
Line 66: Line 66:
 /etc/rsyslog.d/docker.conf /etc/rsyslog.d/docker.conf
 <code> <code>
-Kommentar notwendig, damit syntax highlighting im vim funktioniert...+Docker config
 $AddUnixListenSocket /tmp/syslog.sock $AddUnixListenSocket /tmp/syslog.sock
  
Line 82: Line 82:
 # 23: local7 # 23: local7
 if $syslogfacility == 23 then { if $syslogfacility == 23 then {
-  if $programname startswith "bitwarden-" then {+  if $programname startswith "bw_" then {
     action(name="docker-containers-bitwarden" type="omfile" file="/var/log/docker/bitwarden.log" template="myFormat")     action(name="docker-containers-bitwarden" type="omfile" file="/var/log/docker/bitwarden.log" template="myFormat")
   } else {   } else {
Line 90: Line 90:
 </code> </code>
  
-/etc/rsyslog.d/docker.conf+/etc/docker/daemon.json
 <code> <code>
 { {
Line 102: Line 102:
 } }
 </code> </code>
 +
 +Restart rsyslog, the docker daemon and then all containers to switch to the new driver. Otherwise the docker daemon shows the following error message for the affected containers: "Configured log driver does not support reads, enabling local file cache for container logs".
  • docker.1643621360.txt.gz
  • Last modified: 2022/01/31 10:29
  • by tmaier