Skip to content

Commit 9d94718

Browse files
Don't override $(PATH) environment variable.
1 parent 5736579 commit 9d94718

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

containerd/driver.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,10 @@ func (d *Driver) StartTask(cfg *drivers.TaskConfig) (*drivers.TaskHandle, *drive
358358
// Setup environment variables.
359359
var env []string
360360
for key, val := range cfg.Env {
361+
// Don't override $PATH.
362+
if key == "PATH" {
363+
continue
364+
}
361365
env = append(env, fmt.Sprintf("%s=%s", key, val))
362366
}
363367

0 commit comments

Comments
 (0)