groupadd jumpshell
cd /usr/local/bin/
curl -sSLO https://raw.githubusercontent.com/muayyad-alsadi/docker-jumpshell/v1.5/docker-jumpshell-helper.sh
curl -sSLO https://raw.githubusercontent.com/muayyad-alsadi/docker-jumpshell/v1.5/docker-jumpshell.sh
chmod +x docker-jumpshell*.sh
cat <<EOF >/etc/sudoers.d/docker-jumpshell
Defaults !requiretty
%jumpshell ALL=(ALL) NOPASSWD: /usr/local/bin/docker-jumpshell-helper.sh
EOF
useradd myuser
usermod -a -G jumpshell myuser
usermod -a -G jumpshell-all myuser
chsh -s /usr/local/bin/docker-jumpshell.sh myuser