#!/bin/sh

groupadd -g $GID $USER
groupadd -g $DOCKER_GID docker
useradd -s /usr/bin/zsh -u $UID -g $GID -G $DOCKER_GID $USER
echo "$USER  ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers.d/$USER

if [ $# = 0 ]; then
    /usr/sbin/sshd -D
else
    su - $USER -c "$*"
fi

#!/bin/sh

groupadd -g $DOCKER_GID docker
useradd -M -s $(which nologin) -u $DOCKER_UID -g $DOCKER_GID docker

groupadd -g $GID $USER
useradd -s /usr/bin/zsh -u $UID -g $GID -G $DOCKER_GID $USER
echo "$USER  ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers.d/$USER

if [ $# = 0 ]; then
    /usr/sbin/sshd -D
else
    su - $USER -c "$*"
fi

Add creation of docker user
Add creation of docker user
