diff --git a/server/environment_docker.go b/server/environment_docker.go index 5aee9d5..f489f86 100644 --- a/server/environment_docker.go +++ b/server/environment_docker.go @@ -635,9 +635,12 @@ func (d *DockerEnvironment) environmentVariables() []string { fmt.Sprintf("SERVER_PORT=%d", d.Server.Allocations.DefaultMapping.Port), } + eloop: for k, v := range d.Server.EnvVars { - if strings.ToUpper(k) == "STARTUP" { - continue + for _, e := range out { + if strings.HasPrefix(e, strings.ToUpper(k)) { + continue eloop + } } out = append(out, fmt.Sprintf("%s=\"%s\"", strings.ToUpper(k), v))