Skip to content

Commit 88cc30a

Browse files
committed
Add per-container log size limit (10m, 3 files) to daemon.json
Made-with: Cursor
1 parent a96122b commit 88cc30a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

bin/install-debian.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ sudo tee /etc/docker/daemon.json > /dev/null <<EOF
5959
6060
"log-driver": "journald",
6161
"log-opts": {
62-
"tag": "docker/{{.Name}}"
62+
"tag": "docker/{{.Name}}",
63+
"max-size": "10m",
64+
"max-file": "3"
6365
}
6466
}
6567
EOF

0 commit comments

Comments
 (0)