Skip to content

Commit

Permalink
docker: fix docker user add bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyouyou committed Jan 4, 2020
1 parent f5ff675 commit ab306de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docker/docker_adduser.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/usr/bin/env bash

addgroup --gid "$DOCKER_GRP_ID" "$DOCKER_GRP"
adduser --disabled-password --force-badname --gecos '' "$DOCKER_USER" \
--uid "$DOCKER_USER_ID" --gid "$DOCKER_GRP_ID" 2>/dev/null
adduser --disabled-password --force-badname --gecos '' "$DOCKER_USER"
usermod -aG sudo "$DOCKER_USER"
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
cp -r /etc/skel/. /home/${DOCKER_USER}
Expand Down

0 comments on commit ab306de

Please # to comment.