From 9f538e0477257b235ff21d92f433b98adc1b77bd Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 18 Dec 2014 11:01:54 +0800 Subject: [PATCH] . --- Dockerfile | 2 +- output/outputs.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ff7396c..a53f81a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ MAINTAINER Liang Ding ADD . /wide/gogogo/src/github.com/b3log/wide -RUN useradd wide && chown -R wide:wide /wide && useradd wide_runner +RUN useradd runner ENV GOROOT /usr/src/go ENV GOPATH /wide/gogogo diff --git a/output/outputs.go b/output/outputs.go index f68fb82..e9e4ead 100644 --- a/output/outputs.go +++ b/output/outputs.go @@ -114,8 +114,8 @@ func RunHandler(w http.ResponseWriter, r *http.Request) { Gid: 0, } - cmd.SysProcAttr.UidMappings = []syscall.SysProcIDMap{{ContainerID: 0, HostID: 1001, Size: 1}} - cmd.SysProcAttr.GidMappings = []syscall.SysProcIDMap{{ContainerID: 0, HostID: 1001, Size: 1}} + cmd.SysProcAttr.UidMappings = []syscall.SysProcIDMap{{ContainerID: 0, HostID: 1000, Size: 1}} + cmd.SysProcAttr.GidMappings = []syscall.SysProcIDMap{{ContainerID: 0, HostID: 1000, Size: 1}} stdout, err := cmd.StdoutPipe() if nil != err {