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 (
|
2022-05-10 19:59:00 +00:00
|
|
|
"context"
|
|
|
|
|
2015-11-12 19:55:17 +00:00
|
|
|
"github.com/docker/docker/container"
|
2022-08-17 21:13:49 +00:00
|
|
|
"github.com/docker/docker/daemon/config"
|
2017-09-22 13:52:41 +00:00
|
|
|
specs "github.com/opencontainers/runtime-spec/specs-go"
|
2015-11-01 15:53:15 +00:00
|
|
|
)
|
|
|
|
|
2022-08-17 21:13:49 +00:00
|
|
|
func (daemon *Daemon) execSetPlatformOpt(ctx context.Context, daemonCfg *config.Config, ec *container.ExecConfig, p *specs.Process) error {
|
2022-05-10 19:59:00 +00:00
|
|
|
if ec.Container.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
|
|
|
}
|