2018-02-05 16:05:59 -05:00
|
|
|
package daemon // import "github.com/docker/docker/daemon"
|
2015-11-01 10:53:15 -05:00
|
|
|
|
|
|
|
import (
|
2022-05-10 15:59:00 -04:00
|
|
|
"context"
|
|
|
|
|
2015-11-12 14:55:17 -05:00
|
|
|
"github.com/docker/docker/container"
|
2017-09-22 09:52:41 -04:00
|
|
|
specs "github.com/opencontainers/runtime-spec/specs-go"
|
2015-11-01 10:53:15 -05:00
|
|
|
)
|
|
|
|
|
2022-05-10 15:59:00 -04:00
|
|
|
func (daemon *Daemon) execSetPlatformOpt(ctx context.Context, ec *container.ExecConfig, p *specs.Process) error {
|
|
|
|
if ec.Container.OS == "windows" {
|
2017-06-22 20:15:10 -04:00
|
|
|
p.User.Username = ec.User
|
|
|
|
}
|
2016-03-18 14:53:27 -04:00
|
|
|
return nil
|
2015-11-01 10:53:15 -05:00
|
|
|
}
|