diff --git a/docker/docker.go b/docker/docker.go index 26036a9..a2025ec 100644 --- a/docker/docker.go +++ b/docker/docker.go @@ -270,7 +270,7 @@ func (d *docker) ContainerCreate(opts CreateContainerOpts) (err error) { containerDir := "/opt/pwd" containerCertDir := fmt.Sprintf("%s/certs", containerDir) - env := append([]string{}, fmt.Sprintf("SESSION_ID=%s", opts.SessionId)) + env := append(opts.Envs, fmt.Sprintf("SESSION_ID=%s", opts.SessionId)) // Write certs to container cert dir if len(opts.ServerCert) > 0 {