This commit is contained in:
Liang Ding 2014-12-17 18:19:46 +08:00
parent b8c786bd50
commit 2eecdc2a84
1 changed files with 2 additions and 2 deletions

View File

@ -114,8 +114,8 @@ func RunHandler(w http.ResponseWriter, r *http.Request) {
Gid: 1001,
}
cmd.SysProcAttr.UidMappings = []syscall.SysProcIDMap{{ContainerID: 1001, HostID: 1001, Size: 1}}
cmd.SysProcAttr.GidMappings = []syscall.SysProcIDMap{{ContainerID: 1001, HostID: 1001, Size: 1}}
cmd.SysProcAttr.UidMappings = []syscall.SysProcIDMap{{ContainerID: 1001, HostID: 1000, Size: 1}}
cmd.SysProcAttr.GidMappings = []syscall.SysProcIDMap{{ContainerID: 1001, HostID: 1000, Size: 1}}
stdout, err := cmd.StdoutPipe()
if nil != err {