2015-11-01 10:53:15 -05:00
|
|
|
package daemon
|
|
|
|
|
|
|
|
import (
|
2015-11-12 14:55:17 -05:00
|
|
|
"github.com/docker/docker/container"
|
2016-03-18 14:53:27 -04:00
|
|
|
"github.com/docker/docker/daemon/exec"
|
|
|
|
"github.com/docker/docker/libcontainerd"
|
2015-11-01 10:53:15 -05:00
|
|
|
)
|
|
|
|
|
2016-03-18 14:53:27 -04: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-28 20:35:56 -04:00
|
|
|
p.Args = escapeArgs(p.Args)
|
2016-11-08 14:05:56 -05:00
|
|
|
p.User.Username = ec.User
|
2016-03-18 14:53:27 -04:00
|
|
|
return nil
|
2015-11-01 10:53:15 -05:00
|
|
|
}
|