Where is the Docker daemon log? Oddly cannot find an answer to this via man, StackOverflow or Docker Docs. Note I am not asking for the docker container STDOUT, but the daemon log for troubleshooting communications between the client and container via daemon / proxy.
相关问题
- Docker task in Azure devops won't accept "$(pw
- Unable to run mariadb when mount volume
- I want to trace logs using a Macro multi parameter
- Unspecified error (0x80004005) while running a Doc
- Error message 'No handlers could be found for
Using CentOS7, logs are available using the command
journalctl -u docker
. Answering distinctly, because @sabin's answer might be accurate for older versions of CentOS but was not true for me.Ref: https://docs.docker.com/engine/admin/configuring/
If your OS is using
systemd
then you can view docker daemon log with:For Mac with Docker Toolbox, ssh into the VM first with
docker-machine ssh %VM-NAME%
and then check/var/log/docker.log
In my environment(docker for mac 17.07), there is no log file at
~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/log/docker.log
Instead I can find log file as below.
Enter into VM.
$ screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
Check log file
/ # tail -f /var/log/docker.log