Last active
December 14, 2018 16:00
-
-
Save radiantly/0090d6cc65dc3d4b8eb4ce847050ed80 to your computer and use it in GitHub Desktop.
Install Docker and Docker-compose on Ubuntu 18.04
This file contains hidden or 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
# To run: | |
# chmod +x docker.sh | |
# sudo ./docker.sh | |
echo "################# INSTALLING DOCKER #################" | |
sudo apt update | |
sudo apt install -y apt-transport-https ca-certificates curl 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" | |
sudo apt update | |
apt-cache policy docker-ce | |
sudo apt -y install docker-ce | |
sudo usermod -aG docker ${USER} | |
echo "################# 1/2 INSTALLATION COMPLETED #################" | |
echo "################# INSTALLING DOCKER COMPOSE #################" | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
docker-compose --version | |
echo "################# 2/2 INSTALLATION COMPLETED #################" | |
echo "Reboot before using docker." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment