Created
January 25, 2019 11:02
-
-
Save kapitanluffy/12c34c07bca915facb93753829c6c095 to your computer and use it in GitHub Desktop.
Convenience script for installing docker in Ubuntu
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 | |
# Convenience script for installing docker in Ubuntu | |
# | |
# https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository | |
# https://docs.docker.com/install/linux/linux-postinstall/ | |
apt-get update | |
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 - | |
apt-key fingerprint 0EBFCD88 | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
groupadd docker | |
usermod -aG docker $USER | |
apt-get update | |
apt-get install docker-ce | |
systemctl enable docker | |
echo -e "Reboot machine and execute 'docker run hello-world'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment