docker logs -f container-ID
Docker daemon日誌的位置,根據系統不一樣各不相同。docker
Ubuntu - /var/log/upstart/docker.log日誌
Boot2Docker - /var/log/docker.logcode
Debian GNU/Linux - /var/log/daemon.logget
CentOS - /var/log/daemon.log | grep dockerio
Fedora - journalctl -u docker.service容器
Red Hat Enterprise Linux Server - /var/log/messages | grep dockerservice
參考:grep
http://stackoverflow.com/questions/30969435/where-is-the-docker-daemon-logstackoverflow