Skip to content

Commit

Permalink
Limit Docker container log size
Browse files Browse the repository at this point in the history
  • Loading branch information
hjr265 committed Jan 25, 2024
1 parent 70e1545 commit 705bedd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ func createContainer(c *ssh.Client, app spec.Application, prog spec.Program, doc
"--log-driver",
"json-file",
"--log-opt",
"max-size=3g",
"--log-opt",
`tag="{{.Name}}"`,
"--restart", "always",
"-v", appDir+"/current:/"+app.Identifier,
Expand Down

0 comments on commit 705bedd

Please sign in to comment.