Skip to content

Commit

Permalink
Add docker daemon log limitaion
Browse files Browse the repository at this point in the history
  • Loading branch information
sferatime committed Nov 25, 2024
1 parent a37e104 commit e42ea81
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion cloud-init/init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,14 @@
package_update: true

packages:
- nfs-common
- nfs-common

write_files:
- path: "/etc/docker/daemon.json"
permissions: "0644"
owner: root:root
content: |
{
"log-driver": "json-file",
"log-opts": {"max-size": "5000m", "max-file": "1"}
}

0 comments on commit e42ea81

Please sign in to comment.