Last active
August 15, 2018 02:19
-
-
Save LeandroFranciscato/ef0d8d1aa1e2f40a2ccc116bb46a5fe8 to your computer and use it in GitHub Desktop.
A little bash that install Docker in .deb linux. For jessie and above.
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
#!/bin/bash | |
echo "Removendo versoes pre-existentes... " | |
sudo apt-get remove docker docker-engine docker.io | |
sudo apt-get update | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common | |
echo "Instalando Curl... " | |
sudo apt install -y curl | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/debian \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt-get update | |
echo "Instalando Docker-ce... " | |
sudo apt-get install docker-ce |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment