Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A little bash that install Docker in .deb linux. For jessie and above.
#!/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
You can’t perform that action at this time.