diff --git a/pkg/unikontainers/utils.go b/pkg/unikontainers/utils.go index ff304015..6267814d 100644 --- a/pkg/unikontainers/utils.go +++ b/pkg/unikontainers/utils.go @@ -164,7 +164,10 @@ func handleQueueProxy(spec specs.Spec, configFile string) error { } redirectIPEnv := fmt.Sprintf("REDIRECT_IP=%s", constants.QueueProxyRedirectIP) - envs := []string{readinessProbeEnv, redirectIPEnv} + envs := []string{redirectIPEnv} + if readinessProbeEnv != "" { + envs = append(envs, readinessProbeEnv) + } spec.Process.Env = append(spec.Process.Env, envs...) // Get permissions of specification file