docker保存日志文件到本地

其实很简单docker

docker logs +你须要添加的额外参数 + 容器id >文件名称post

而后查看这个文件就能够了,也能够经过ftp协议下载到本地blog