2018-02-05 21:05:59 +00:00
|
|
|
package daemon // import "github.com/docker/docker/daemon"
|
2015-11-01 15:53:15 +00:00
|
|
|
|
|
|
|
import (
|
2015-11-12 19:55:17 +00:00
|
|
|
"github.com/docker/docker/container"
|
2016-03-18 18:53:27 +00:00
|
|
|
"github.com/docker/docker/daemon/exec"
|
2017-09-22 13:52:41 +00:00
|
|
|
specs "github.com/opencontainers/runtime-spec/specs-go"
|
2015-11-01 15:53:15 +00:00
|
|
|
)
|
|
|
|
|
2017-09-22 13:52:41 +00:00
|
|
|
func (daemon *Daemon) execSetPlatformOpt(c *container.Container, ec *exec.Config, p *specs.Process) error {
|
2017-08-08 19:43:48 +00:00
|
|
|
if c.OS == "windows" {
|
2017-06-23 00:15:10 +00:00
|
|
|
p.User.Username = ec.User
|
|
|
|
}
|
2016-03-18 18:53:27 +00:00
|
|
|
return nil
|
2015-11-01 15:53:15 +00:00
|
|
|
}
|