0

The docker image is generating logs on console. Is there any configuration to setup rolling log files

Cœur
  • 37,241
  • 25
  • 195
  • 267
Raman
  • 11

1 Answers1

1

docker run --it --log-opt max-size=50m --log-opt max-file=3 crate will give you logrotation of three archived logfiles and the maximum size of 50 megabytes.

For more details see the docker logging overview.

gtonic
  • 2,295
  • 1
  • 24
  • 32