Skip to content

Instantly share code, notes, and snippets.

@ashimjk
Forked from sethbergman/install-docker.sh
Last active March 23, 2021 05:34
Show Gist options
  • Save ashimjk/fe5926c9ed6d48e5d2f53b12fdf8cb2f to your computer and use it in GitHub Desktop.
Save ashimjk/fe5926c9ed6d48e5d2f53b12fdf8cb2f to your computer and use it in GitHub Desktop.
Install Docker CE on Linux Mint 19
#!/usr/bin/env bash
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y
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"
# if not able to add repository
sudo nano /etc/apt/sources.list.d/additional-repositories.list
# add the following line in the file
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
sudo apt-get update
sudo apt-get install docker.io
# https://docs.docker.com/compose/install/
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
# https://docs.docker.com/install/linux/linux-postinstall/
sudo groupadd docker
sudo usermod -aG docker $USER
# install docker-machine
base=https://github.com/docker/machine/releases/download/v0.16.0 &&
curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine &&
sudo mv /tmp/docker-machine /usr/local/bin/docker-machine &&
chmod +x /usr/local/bin/docker-machine
sudo apt install virtualbox virtualbox-ext-pack
docker-machine create --driver virtualbox default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment