docker logs

docker logs -f 的时候会打印从头到尾所有的日志,但是这里只想看到最新的,所以这里需要增加参数 如下

docker logs --tail=0 --follow swarm1

你可能感兴趣的:(docker logs)