Created
February 7, 2019 13:49
-
-
Save AnthonyLaw/346d1593d776d09725d9fa2b1b85cba0 to your computer and use it in GitHub Desktop.
install Docker + Docker-compose
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 | |
# Install Docker + Docker-compose on Ubuntu 18.04 | |
sudo true | |
sudo apt update | |
sudo apt 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" | |
sudo apt update | |
apt-cache policy docker-ce | |
sudo apt install docker-ce -y | |
sudo usermod -aG docker ${USER} | |
# Docker-compose | |
sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
cd ~ | |
echo "Completed!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment