Merge pull request #31491 from rawkode/feature/healthchecks-missing-environment
Healthchecks should inherit environment
This commit is contained in:
commit
f4e82d71a8
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ func (p *cmdProbe) run(ctx context.Context, d *Daemon, container *container.Cont
|
|||
execConfig.Tty = false
|
||||
execConfig.Privileged = false
|
||||
execConfig.User = container.Config.User
|
||||
execConfig.Env = container.Config.Env
|
||||
|
||||
d.registerExecCommand(container, execConfig)
|
||||
d.LogContainerEvent(container, "exec_create: "+execConfig.Entrypoint+" "+strings.Join(execConfig.Args, " "))
|
||||
|
|
Loading…
Reference in a new issue