Created
December 6, 2019 16:24
-
-
Save JollyWizard/010ee45b5d24fd8b17c6475ab7a0a2ed to your computer and use it in GitHub Desktop.
Install Docker-CE on Linux Mint 19.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Modified from another gist I lost the link to. | |
# Adapting from older instructions seems to require: | |
# * Change Distro slug for `add-apt-repository` to `bionic`. `(lsb-release...` method doesn't work with mint. | |
# * Use recommended package titles from current ubuntu install instructions on dockers website. | |
# https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | |
echo -e "\ndeb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | sudo tee -a /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get install docker-ce docker-ce-cli containerd.io -y | |
sudo apt-get autoremove -y | |
# https://docs.docker.com/compose/install/ | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose | |
sudo chmod +x /usr/bin/docker-compose | |
# https://docs.docker.com/compose/completion/ | |
sudo curl -L https://raw.githubusercontent.com/docker/compose/1.24.1/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose | |
# https://docs.docker.com/install/linux/linux-postinstall/ | |
sudo groupadd docker | |
sudo usermod -aG docker $USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment