From cf50d344b2d8a7fb876aa757ef14664e33b7455e Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Sun, 21 Jun 2020 22:26:09 -0300 Subject: [PATCH] Append instance variables --- docker/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {