Docker for Mac logs (updated)

less than 1 minute read

Some time last month new docker for mac shipped with LinuxKit:

$ screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
linuxkit-025000000001:~# uname -a
Linux linuxkit-025000000001 4.9.75-linuxkit-aufs #1 SMP Tue Jan 9 10:58:17 UTC 2018 x86_64 Linux

But eventually you’ll discover /dev/log is missing. Apparently syslog is not running too.

So one way to get the log working again is to run syslog:

linuxkit-025000000001:~# syslogd

Which will create /dev/log socket and write to /var/log/messages by default and you can continue tailing that log file like before.

Happy logging!

Leave a Comment