Skip to content

Commit

Permalink
Skip creating new image if env is empty (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
froody authored Aug 20, 2024
1 parent 9894abb commit c35e48d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/drivers/docker_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ func (d *DockerDriver) Destroy() {
}

func (d *DockerDriver) SetEnv(envVars []unversioned.EnvVar) error {
if len(envVars) == 0 {
return nil
}
env := d.processEnvVars(envVars)
container, err := d.cli.CreateContainer(docker.CreateContainerOptions{
Platform: d.platform,
Expand Down

0 comments on commit c35e48d

Please sign in to comment.