Merge pull request #31491 from rawkode/feature/healthchecks-missing-environment

Healthchecks should inherit environment
This commit is contained in:
Vincent Demeester 2017-03-03 08:36:37 +01:00 committed by GitHub
commit f4e82d71a8

View file

@ -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, " "))