fix: dockerutils - add env to container
This commit is contained in:
parent
83fae430b9
commit
fa45125b49
@ -39,7 +39,7 @@ func (builder *Builder) AddLabel(key string, value string) *Builder {
|
|||||||
func (builder *Builder) Env(env map[string]string) *Builder {
|
func (builder *Builder) Env(env map[string]string) *Builder {
|
||||||
builder.containerConfig.Labels = make(map[string]string)
|
builder.containerConfig.Labels = make(map[string]string)
|
||||||
for key, value := range env {
|
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
|
return builder
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user