Use Set for stderr "logs" job in builder

Because engine implicitly adds his stder to job stderr

Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
This commit is contained in:
Alexandr Morozov 2014-12-09 19:08:24 -08:00
parent fa7e01794f
commit a62cbdeb47

View file

@ -539,7 +539,7 @@ func (b *Builder) run(c *daemon.Container) error {
logsJob.Setenv("stdout", "1")
logsJob.Setenv("stderr", "1")
logsJob.Stdout.Add(b.OutStream)
logsJob.Stderr.Add(b.ErrStream)
logsJob.Stderr.Set(b.ErrStream)
if err := logsJob.Run(); err != nil {
return err
}