mirror of
https://github.com/containers/podman.git
synced 2025-06-22 18:08:11 +08:00
make podman play use ENVs from image
fixes #8608. Signed-off-by: Christopher J. Ruwe <cjr@cruwe.de>
This commit is contained in:
@ -148,6 +148,11 @@ func ToSpecGen(ctx context.Context, containerYAML v1.Container, iid string, newI
|
||||
|
||||
// Environment Variables
|
||||
envs := map[string]string{}
|
||||
for _, env := range imageData.Config.Env {
|
||||
keyval := strings.Split(env, "=")
|
||||
envs[keyval[0]] = keyval[1]
|
||||
}
|
||||
|
||||
for _, env := range containerYAML.Env {
|
||||
value := envVarValue(env, configMaps)
|
||||
|
||||
|
Reference in New Issue
Block a user