mirror of https://github.com/docker/docs.git
Pass standard streams through between frontend and backend
This commit is contained in:
parent
9acaf7597f
commit
a1b63f4b79
|
@ -56,6 +56,9 @@ func cmdDaemon(c *cli.Context) {
|
|||
front.Register(c.App.Name, server.ServeApi)
|
||||
front.RegisterCatchall(func(job *engine.Job) engine.Status {
|
||||
fw := back.Job(job.Name, job.Args...)
|
||||
fw.Stdout.Add(job.Stdout)
|
||||
fw.Stderr.Add(job.Stderr)
|
||||
fw.Stdin.Add(job.Stdin)
|
||||
fw.Run()
|
||||
return engine.Status(fw.StatusCode())
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue