Repository navigation
Commit 072889d
committed
docs: spell out what the local log driver actually changes
The log-rotation section asserted that json-file "grows unbounded" without
saying why or what local replaces it with, which is the kind of claim a reader
has to go verify before acting on it.
Per Docker's driver docs: json-file defaults to max-size -1 (unlimited) with
max-file 1, so it does not rotate at all unless configured; local defaults to
20 MB x 5 files with compression on, capping a container at roughly 100 MB.
Adds that comparison as a table, notes docker logs still works, and records the
caveat that local's files are "designed to be exclusively accessed by the Docker
daemon".
Also stops overclaiming: Docker's docs state no preference between the two
drivers, so this is presented as a better-defaults choice, with the json-file +
log-opts alternative given for anyone who needs raw-JSON compatibility. Notes
that the setting only affects newly created containers, which makes a post-reset
moment the cheapest time to apply it.1 parent bebd8a9 commit 072889d
1 file changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
162 | 182 | | |
163 | 183 | | |
164 | 184 | | |
| |||
0 commit comments