[why] The docker run -u xxx command need a number after it, not a string
And commiter is a group, not user, so use -g instead of -u
[errmsg] docker: Error response from daemon: linux spec user: unable to find user 1090
Signed-off-by: Li Yuanchao lyc163mail@163.com --- container/git-mirror/start | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/container/git-mirror/start b/container/git-mirror/start index 6ec0001..e1d7d8f 100755 --- a/container/git-mirror/start +++ b/container/git-mirror/start @@ -10,13 +10,13 @@ DOCKER_REPO = '/c/upstream-repos' docker_rm "git-mirror"
lkp = %x(id -u lkp) -committer = %x(id -u committer) +committer = %x(id -g committer)
cmd = %W[ docker run --restart=always --name git-mirror - -u #{lkp}:#{committer} + -u #{lkp.to_i}:#{committer.to_i} -d -e CCI_SRC=#{DOCKER_CCI} -e REPO_SRC=#{DOCKER_REPO}