fix: dockerutils - add env to container

This commit is contained in:
Markus Pesch 2020-06-14 22:08:07 +02:00
parent 83fae430b9
commit fa45125b49
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -39,7 +39,7 @@ func (builder *Builder) AddLabel(key string, value string) *Builder {
func (builder *Builder) Env(env map[string]string) *Builder {
builder.containerConfig.Labels = make(map[string]string)
for key, value := range env {
builder.containerConfig.Labels[key] = value
builder.containerConfig.Env = append(builder.containerConfig.Env, fmt.Sprintf("%v=%v", key, value))
}
return builder
}