One - One Code All

Blog Content

docker logs实时查看日志tail

容器化   2015-09-19 14:34:11

日志查看命令:

docker logs -f -t --since="2017-05-31" --tail=10 container

说明:

--since : 指定输出日志开始日期。

-f : 查看实时日志

-t : 查看日志产生的时间戳

-tail=10 : 查看最后的10条日志。

container : 容器名

docker logs -f --until=2s

说明:

相对时间(relative):2015-09-19T13:23:37

绝对时间(timestamp):42m for 42 minutes



上一篇:python内存缓存管理wrapcache
下一篇:docker查看容器的挂载目录

The minute you think of giving up, think of the reason why you held on so long.