even more updates

This commit is contained in:
Frieder Schlesier 2022-03-11 16:45:52 +01:00
parent 6037bcbf6f
commit 039a897afa
2 changed files with 20 additions and 1 deletions

View File

@ -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 '

View File

@ -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