Created
November 26, 2019 16:22
-
-
Save wellingtoncosta/c15be233fdc5beafdd5f70683122063a 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 | |
set -eu | |
# Docker | |
sudo apt remove --yes docker docker-engine docker.io \ | |
&& sudo apt update \ | |
&& sudo apt --yes --no-install-recommends install \ | |
apt-transport-https \ | |
ca-certificates \ | |
&& wget --quiet --output-document=- https://download.docker.com/linux/ubuntu/gpg \ | |
| sudo apt-key add - \ | |
&& sudo add-apt-repository \ | |
"deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release --codename --short) \ | |
stable" \ | |
&& sudo apt update \ | |
&& sudo apt --yes --no-install-recommends install docker-ce \ | |
&& sudo usermod --append --groups docker "$USER" \ | |
&& sudo systemctl enable docker \ | |
&& printf '\nDocker installed successfully\n\n' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment