Last active
November 19, 2021 17:58
-
-
Save texe/887a24b63405cb3bf7638b50c67a6fd0 to your computer and use it in GitHub Desktop.
Script for installing Docker and docker-compose in Linux Mint/Ubuntu
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
#!/bin/bash | |
sudo apt-get update | |
# install dependencies | |
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common | |
# add the gpg key for docker | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# add the repository in the Linux mint 20 | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(. /etc/os-release; echo "$UBUNTU_CODENAME") stable" | |
sudo apt-get update | |
# install docker and docker-compose | |
sudo apt-get install docker docker-compose | |
# add the user system to docker group (restart required) | |
sudo usermod -aG docker $USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment