diff --git a/utils/install_docker.sh b/utils/install_docker.sh index 4cc8791..f60c8b1 100644 --- a/utils/install_docker.sh +++ b/utils/install_docker.sh @@ -2,7 +2,7 @@ echo "Installing denpendency packages..." sudo apt update -sudo apt install apt-transport-https ca-certificates curl software-properties-common lsb-release +sudo apt install -y apt-transport-https ca-certificates curl software-properties-common lsb-release echo "Installing docker key..." curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/docker-archive-keyring.gpg @@ -14,7 +14,7 @@ echo "Refreshing packages.." sudo apt update echo "NB Check if installing from Docker repo instead of Ubuntu repo" -apt-cache policy docker-ce +apt-cache policy -y docker-ce # Check repo read -p "Are we installing from Docker repo? (Y/N): " repo_ok @@ -24,10 +24,7 @@ if [[ $repo_ok == [nN] || $repo_ok == [nN][oO] ]]; then fi echo "Installing docker Community Edition" -sudo apt install docker-ce - -echo "Docker status : " -systemctl status docker +sudo apt install -y docker-ce #Add user to docker group read -p "Do you want to add the current user to docker group? (Y/N): " add_user @@ -38,3 +35,4 @@ if [[ $add_user == [yY] || $add_user == [yY][eE][sS] ]]; then fi echo "Process finished" +echo "use 'systemctl status docker' to inspect"