The location of the Docker daemon log file can vary depending on your operating system and the configuration of your Docker installation. Here are the common locations:
Linux (systemd):
/var/log/syslogor/var/log/messages. You can use thejournalctlcommand to view the logs. For example, to view the last 100 lines of the Docker daemon log, you can run:Linux (non-systemd):
/var/log/docker.logor/var/log/messages. You can use thetailcommand to view the logs. For example, to view the last 100 lines of the Docker daemon log, you can run:macOS:
/var/log/system.log. You can use thelog showcommand to view the logs. For example, to view the last 100 lines of the Docker daemon log, you can run:Windows:
C:\ProgramData\Docker\log. You can use theGet-Contentcommand to view the logs. For example, to view the last 100 lines of the Docker daemon log, you can run:
Note that the above locations may vary based on your Docker installation and configuration. If you're unable to locate the Docker daemon log, you can check the Docker documentation or seek help from the Docker community.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.