Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Windows Tipps & SecurityAnnouncing new builds for 2 October 2026(02.10.2026 um 19:04 Uhr)
•••
Sicherheitslücken (CVE)Hardening a Self-Managed GitLab Instance After CVE-2026-85706(02.10.2026 um 19:20 Uhr)
•
Sichere ProgrammierungA Local Voice Accountability Partner for Task Paralysis(02.10.2026 um 19:20 Uhr)
•
Sichere ProgrammierungRemote MCP tools that run long: what your agent actually gets back(02.10.2026 um 19:22 Uhr)
•
Sichere ProgrammierungYour EA crashed at 3am — who hits the brake?(02.10.2026 um 19:22 Uhr)
••••
Windows Tipps & SecurityAnnouncing new builds for 2 October 2026(02.10.2026 um 19:04 Uhr)
•••
Sicherheitslücken (CVE)Hardening a Self-Managed GitLab Instance After CVE-2026-85706(02.10.2026 um 19:20 Uhr)
•
Sichere ProgrammierungA Local Voice Accountability Partner for Task Paralysis(02.10.2026 um 19:20 Uhr)
•
Sichere ProgrammierungRemote MCP tools that run long: what your agent actually gets back(02.10.2026 um 19:22 Uhr)
•
Sichere ProgrammierungYour EA crashed at 3am — who hits the brake?(02.10.2026 um 19:22 Uhr)
••••
Intelligence View
⚡ tsecurity.de Intelligence

Change Docker default logging driver

Docker by default uses the json-file logging driver. This driver stores the logs in a JSON-formatted file, that makes it easy to access the logs…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!

Docker by default uses the json-file logging driver. This driver stores the logs in a JSON-formatted file, that makes it easy to access the logs programatically.



But this json-file driver has one problem, it doesn’t performs log rotation by default, due to that this can cause disk exhaustion.



To solve this we have two options, enable the log rotation to this driver or change the driver to another driver.






Enable log rotation to json-file driver



We can enable the log rotation at the /etc/docker/daemon.json file.




{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "5"
}
}









Change to local driver



The local driver is newer than the json-file driver, and it might become the default one in the future. It has log rotation enabled by default.




{
"log-driver": "local",
}









Restart Docker to apply changes



Once we’ve decided what logging driver to use, we should restart the Docker service in order to apply the changes.




systemctl restart docker






Keep in mid our existing container won’t change to our new logging configuration until they’re recreated.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Change Docker default logging driver

Thematisch verwandte Begriffe: Change, Docker, default, logging · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag