docker run -it -v /test:/soft centos /bin/bash
docker logs -f -t --since="2018-02-08" --tail=100 CONTAINER_ID >> fileName.log docker logs -t CONTAINER_ID | grep 'error' >> logs_error.txt # 将最近225分钟的日志写到file.txt文件 docker logs --since 225m 4261ce7f5c14 >>file.txt