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
It depends on your OS. Here are the few locations, with commands for few Operating Systems:
/var/log/upstart/docker.log
sudo journalctl -fu docker.service
/var/log/docker
/var/log/docker.log
/var/log/daemon.log
/var/log/daemon.log | grep docker
journalctl -u docker.service
journalctl -u docker.service
/var/log/messages | grep docker
journalctl -u docker.service
~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/log/docker.log
Get-EventLog -LogName Application -Source Docker -After (Get-Date).AddMinutes(-5) | Sort-Object Time
, as mentioned here.Also you can see logs by this command:
For Docker Mac Native (without Boot2Docker or docker-machine, running your Docker installation without extra VirtualBox - which I would recommend over the others), all the answers didn´t work for me. But the Docker docs fortunately came to the rescue.
If you want to see the docker daemon logs on commandline, just type:
Alternatively from Mac OS Sierra on, you can use the newly designed Mac Console App (don´t get confused here with the App "Terminal", the Console App´s icon looks quite similar - I found it with the Launchpad below "Others.."). There´s an article here which describes the general usage of the new Mac OS Sierra Console App, which didn´t make it into the official Docker docs yet.
Inside the Console App just choose system.log and type
Docker
into the search bar. That´s it. Now you should see all Docker related logs.Docker for Mac (Beta)
~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/log/docker.log
The location of docker logs has changed for Mac OSX to
~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/console-ring
See Docker Daemon Documentation
Add ways to find docker daemon log in windows:
try
When using docker machine on Windows and Mac OSX, the daemon runs inside a virtual machine.
First, find your active Docker machine.
docker-machine ls Find the name of the active docker machine under the NAME column in the output.
You can copy the docker daemon log file to your local directory for analysis:
docker-machine scp default:/var/log/docker.log ./ Where default is the name of active your docker machine.