Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Commit

Permalink
Pass -l to useradd to prevent "no space left on device"
Browse files Browse the repository at this point in the history
  • Loading branch information
rcook committed Oct 21, 2016
1 parent 001e1a6 commit ee2fe98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibtimpl/up_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def run(self, ctx, args):
with open(os.path.join(dir, "Dockerfile"), "wt") as f:
f.write("FROM {}\n".format(docker_image))
f.write("RUN groupadd -g {} {}\n".format(gid, group_name))
f.write("RUN useradd -u {} -g {} {}\n".format(uid, gid, user_name))
f.write("RUN useradd -l -u {} -g {} {}\n".format(uid, gid, user_name))

with open(os.path.join(dir, ".dockerignore"), "wt") as f:
f.write("*\n")
Expand Down

0 comments on commit ee2fe98

Please sign in to comment.