Skip to content

Commit

Permalink
Merge pull request #92 from Stratoscale/michaelf/groups
Browse files Browse the repository at this point in the history
change docker group id if exists
  • Loading branch information
michaelf-stratoscale authored Aug 8, 2017
2 parents cfdfc77 + edb293d commit d2d8a94
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion data/skipper-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ if [ x"$?" != x"0" ]; then
useradd -u ${SKIPPER_UID} --non-unique -M "${SKIPPER_USERNAME}"
fi

groupadd -g ${SKIPPER_DOCKER_GID} --non-unique docker
if [ $(getent group docker) ]; then
groupmod -o -g ${SKIPPER_DOCKER_GID} docker
else
groupadd -g ${SKIPPER_DOCKER_GID} --non-unique docker
fi

usermod -G root,docker ${SKIPPER_USERNAME}

su -m ${SKIPPER_USERNAME} -c "$@"
Expand Down

0 comments on commit d2d8a94

Please sign in to comment.