Skip to content

Commit

Permalink
docker: image_delay default missing without gc stanza
Browse files Browse the repository at this point in the history
In the Docker driver plugin config for garbage collection, the `image_delay`
field was missing from the default we set if the entire `gc` stanza is
missing. This results in a default of 0s and immediate GC of Docker images.
  • Loading branch information
tgross committed Oct 15, 2020
1 parent 8a448f0 commit 8f831bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/docker/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ var (
),
})), hclspec.NewLiteral(`{
image = true
image_delay = "3m"
container = true
dangling_containers = {
enabled = true
Expand Down

0 comments on commit 8f831bf

Please sign in to comment.