logs

  • 用法
  1. Usage: docker logs [OPTIONS] CONTAINER
  2. Fetch the logs of a container
  3. -f, --follow=false Follow log output
  4. --help=false Print usage
  5. --since= Show logs since timestamp
  6. -t, --timestamps=false Show timestamps
  7. --tail=all Number of lines to show from the end of the logs
  • 例子
  1. $ sudo docker logs 60095325e584
  • 总结

批量打印出容器中进程的运行日志。