Created
December 17, 2019 19:12
-
-
Save AviKKi/d84cc46d2eac33836cbbdc245786766d to your computer and use it in GitHub Desktop.
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/sh | |
# udpate apt | |
sudo apt-get update | |
# install certificates & add repository | |
sudo apt-get install 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 $(lsb_release -cs) stable" | |
# update apt | |
sudo apt-get update | |
sudo apt-get install docker-ce docker-ce-cli containerd.io | |
# add current user to docker group | |
sudo usermod -aG docker $USER | |
## now reconnect to the instance and try below test | |
docker container run hello-world | |
# install docker-compose | |
sudo apt-get install docker-compose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Short and simple 🔥