@JunQiu
2018-09-18T21:07:45.000000Z
字数 2198
阅读 2057
summary_2018/08
docker
15:31:50 › docker logs 582ce3191b63
Sending Logstash logs to /usr/share/logstash/logs which is now configured via log4j2.properties
[2018-08-29T08:24:13,555][INFO ][logstash.setting.writabledirectory] Creating directory {:setting=>"path.queue", :path=>"/usr/share/logstash/data/queue"}
[2018-08-29T08:24:13,576][INFO ][logstash.setting.writabledirectory] Creating directory {:setting=>"path.dead_letter_queue", :path=>"/usr/share/logstash/data/dead_letter_queue"}
[2018-08-29T08:24:15,350][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
docker与宿主、容器的环境??
docker在mac中的容器日志在哪??
### docker inspect 比较好用
可以查看container和image里面的具体内容
// 比如查看本地日志
docker inspect --format='{{.LogPath}}' <container_name>
### docker在mac中运行在VM中
// 进入VM
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
// 获取日志,上面的inspect可以查看命令
cat /var/lib/docker/containers/582ce3191b635eb3f0619acfc0bf7eb039618321c87eb1fd067f10560abb6aa4/582ce3191b635eb3f0619acfc0bf7eb039618321c87eb1fd067f10560abb6aa4-json.log