Search code examples
loggingdockerboot2dockerdockerfile

docker daemon logs are missing


I am looking for the docker-daemon logs, the ones that display information between the docker client and the docker daemon.

According to this answer: Where is the Docker daemon log?

The log is supposed to be in /var/log/docker.log for boot2docker (I am running docker on windows).

However, boot2docker is deprecated and replaced by docker-machine.

Regardless, I do not have the directory or log file listed above. I do not even have a /var directory.

After creating one the above log file in the specified path, the daemon did not even write to the docker.log file as well.

Any ideas?


Solution

  • When you use boot2docker or docker-machine you first need to ssh into that VM with docker-machine ssh <machineName>. There you will find the /var/log/ folder.