Docker and CI/CD · Middle · Question 23 of 75
What prevents Docker's default json-file logs from filling the disk?
- 1Logs are kept only in memory, never on disk
- 2Docker deletes logs automatically every night
- ✓Correct answer: Rotation options like
max-sizeandmax-file
Explanation
Without rotation, a chatty container can fill the host disk. Set it per container or in the daemon config, or use the local driver.