Skip to content

Commit 4ec7620

Browse files
committed
[drivers/docker] pull=always only in dev
1 parent c7d328c commit 4ec7620

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/backplane/drivers/docker.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,13 @@ func (d *dockerDriver) Start(
105105
}
106106

107107
log.Infof("Starting container %s", cname)
108+
pullPolicy := "missing"
109+
if build.IsDev() {
110+
pullPolicy = "always"
111+
}
108112
cmd := exec.CommandContext(ctx,
109113
"docker", "run",
110-
"--pull=always",
114+
fmt.Sprintf("--pull=%s", pullPolicy),
111115
"--detach",
112116
//"--rm",
113117
"--name", cname,

0 commit comments

Comments
 (0)