From 039a897afaffe4841bcc77f08aad86f01cf8a739 Mon Sep 17 00:00:00 2001 From: Frieder Schlesier Date: Fri, 11 Mar 2022 16:45:52 +0100 Subject: [PATCH] even more updates --- .aliases | 2 +- scripts/install.sh | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.aliases b/.aliases index cc4d710..ded97ad 100755 --- a/.aliases +++ b/.aliases @@ -43,8 +43,8 @@ alias dstats="docker stats "'$(sudo docker ps -aq)' # shows stats thingy for all alias drmsc="docker container prune" #alias drmsc="docker container ls -a | grep Exited | awk '{print $1}' | xargs docker container rm" # removes stopped containers -#alias drmdi="docker image remove "'$(docker image ls -q -f dangling=true)' # removes non-tagged images alias drmdi="docker image prune" +#alias drmdi="docker image remove "'$(docker image ls -q -f dangling=true)' # removes non-tagged images # docker swarm alias dss='docker stack services ' diff --git a/scripts/install.sh b/scripts/install.sh index d880ca1..3451557 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -532,6 +532,25 @@ install_virtualbox() { software-properties-common \ --no-install-recommends + curl -fsSL https://download.docker.com/linux/debian/gpg | $SUDO apt-key add - + + # add docker apt repo + cat <<-EOF > /etc/apt/sources.list.d/docker.list + deb [arch=amd64] https://download.docker.com/linux/debian buster stable + # deb [arch=amd64] https://download.docker.com/linux/debian buster test + # deb [arch=amd64] https://download.docker.com/linux/debian buster nightly +EOF + + apt update + apt install -y \ + docker-ce \ + --no-install-recommends + + groupadd docker + addgroup ${USERNAME} docker + + docker version + docker info } # install/update golang from source