github.com/moby/docker@v26.1.3+incompatible/daemon/exec_windows.go (about) 1 package daemon // import "github.com/docker/docker/daemon" 2 3 import ( 4 "context" 5 6 "github.com/docker/docker/container" 7 "github.com/docker/docker/daemon/config" 8 specs "github.com/opencontainers/runtime-spec/specs-go" 9 ) 10 11 func (daemon *Daemon) execSetPlatformOpt(ctx context.Context, daemonCfg *config.Config, ec *container.ExecConfig, p *specs.Process) error { 12 if ec.Container.OS == "windows" { 13 p.User.Username = ec.User 14 } 15 return nil 16 }