Add user to docker group
This commit is contained in:
parent
12582781ff
commit
f13028fdef
|
@ -49,6 +49,13 @@ prepare_homedir() {
|
||||||
echo "<===== 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() {
|
install_ntpd() {
|
||||||
echo "=====> install_ntpd"
|
echo "=====> install_ntpd"
|
||||||
sudo timedatectl set-ntp no
|
sudo timedatectl set-ntp no
|
||||||
|
@ -258,7 +265,8 @@ main () {
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
||||||
prepare_homedir
|
prepare_homedir
|
||||||
|
add_user_to_docker_group
|
||||||
|
|
||||||
install_ntpd
|
install_ntpd
|
||||||
install_haveged
|
install_haveged
|
||||||
allocate_swap
|
allocate_swap
|
||||||
|
|
Loading…
Reference in New Issue