Add user to docker group

This commit is contained in:
phahulin 2017-07-11 14:05:36 +03:00 committed by GitHub
parent 12582781ff
commit f13028fdef
1 changed files with 9 additions and 1 deletions

View File

@ -49,6 +49,13 @@ prepare_homedir() {
echo "<===== prepare_homedir"
}
add_user_to_docker_group() {
# based on https://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo
sudo groupadd docker
sudo gpasswd -a "${ADMIN_USER}" docker
newgrp docker
}
install_ntpd() {
echo "=====> install_ntpd"
sudo timedatectl set-ntp no
@ -258,7 +265,8 @@ main () {
sudo apt-get update
prepare_homedir
add_user_to_docker_group
install_ntpd
install_haveged
allocate_swap