#!/bin/bash # source: # https://linuxhint.com/install_docker_linux_mint/ echo "remove prior versions" sudo apt remove docker docker-engine docker.io containerd runc echo "install https utils" sudo apt update -y && \ sudo apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common echo "add docker key" curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - echo "verify" sudo apt-key fingerprint 0EBFCD88 echo "config stable repo" sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" echo "update apt cache" sudo apt update -y echo "install docker repo latest" sudo apt install -y docker-ce docker-ce-cli containerd.io echo "install specific docker version" echo "list verssions" apt-cache madison docker-ce echo "install specific version" sudo apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io # DEB url ( bionic for Mint ) # https://download.docker.com/linux/ubuntu/dists/ echo "wget the deb file" #wget <url> echo "install the deb file" #cd ~/Downloads/ #sudo apt install ./*.deb
- Log in to post comments