2015-11-01 15:53:15 +00:00
|
|
|
package daemon
|
|
|
|
|
|
|
|
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"
|
|
|
|
"github.com/docker/docker/libcontainerd"
|
2015-11-01 15:53:15 +00:00
|
|
|
)
|
|
|
|
|
2016-03-18 18:53:27 +00:00
|
|
|
func execSetPlatformOpt(c *container.Container, ec *exec.Config, p *libcontainerd.Process) error {
|
|
|
|
// Process arguments need to be escaped before sending to OCI.
|
2016-03-29 00:35:56 +00:00
|
|
|
p.Args = escapeArgs(p.Args)
|
2016-11-08 19:05:56 +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
|
|
|
}
|