Have useradd create the group itself

This commit is contained in:
Monty Taylor 2014-07-26 21:54:40 -07:00
parent 08aeceec1f
commit b2b690edcc
1 changed files with 1 additions and 2 deletions

View File

@ -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))