docker日志vs docker容器日志

时间:2018-11-02 16:45:59

标签: docker

似乎有两个命令可以从容器中获取日志

> zipgam$contrasts $spp [1] "contr.treatment" $mined [1] "contr.treatment" $spp [1] "contr.treatment"

例如

docker logs <container_name>

tapan@y500:~$ docker logs es OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. [2018-11-02T16:35:26,485][INFO ][o.e.n.Node] [] initializing...

docker conainer logs <container_name>

它们之间有什么区别?

1 个答案:

答案 0 :(得分:1)

请参阅此拉取请求https://github.com/moby/moby/pull/26025

Docker CLI不断发展,他们保留了旧命令。

因此,基本上docker container logs所指的代码与docker logs相同。