mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
Merge pull request #8654 from cruwe/cjr/bugfix-8608-take-envs-from-img
make podman play use ENVs from image
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