1

I use docker on centOS, and test docker on MAC OS X. But I want to see the log information when docker run. How to find the log?

v11
  • 2,124
  • 7
  • 26
  • 54

1 Answers1

2

The daemon on Boot2docker or CentOS should have its log in /var/log/docker.log.
For boot2docker, you need to be in a boot2docker session.

(this isn't always the case: On Ubuntu, for instance, this would be different: /var/log/upstart/docker.log).

If you need to see more log, you can start the daemon with the -D option.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thanks a lot for your help. – v11 Jul 17 '15 at 11:00
  • Excuse me,I use the method to create mirror, but it didn't work. Can you help me? http://stackoverflow.com/questions/31517388/how-to-create-docker-registry-mirror-on-centos – v11 Jul 21 '15 at 01:37