Have useradd create the group itself
This commit is contained in:
parent
08aeceec1f
commit
b2b690edcc
|
@ -117,8 +117,7 @@ class Runner(object):
|
|||
try:
|
||||
tempd = tempfile.mkdtemp()
|
||||
dockerfile.append(
|
||||
"RUN groupadd -g %(gid)s %(user)s"
|
||||
" && useradd -M -d /src -g %(gid)s -u %(uid)s %(user)s" % dict(
|
||||
"RUN useradd -M -U -d /src -u %(uid)s %(user)s" % dict(
|
||||
uid=os.getuid(), gid=os.getgid(), user=os.getlogin()))
|
||||
for add_file in commands.get_add_files():
|
||||
shutil.copy(add_file, os.path.join(tempd, add_file))
|
||||
|
|
Loading…
Reference in New Issue