Last active
August 25, 2019 11:45
-
-
Save cbonesana/53ba1de2baeaadb63f56145113be1bda to your computer and use it in GitHub Desktop.
Single-script installer for the latest stable Docker for Ubuntu. Source: https://docs.docker.com/install/linux/docker-ce/ubuntu/
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/bash | |
# SET UP THE REPOSITORY | |
# Update the apt package index: | |
apt update | |
# Install packages to allow apt to use a repository over HTTPS: | |
apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
# Add Docker’s official GPG key: | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | |
# Use the following command to set up the stable repository. | |
apt-key fingerprint 0EBFCD88 | |
# Use the following command to set up the stable repository. | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
# INSTALL DOCKER ENGINE - COMMUNITY | |
# Update the apt package index. | |
apt-get update | |
# Install the latest version of Docker Engine - Community and containerd | |
apt-get install -y docker-ce docker-ce-cli containerd.io | |
# Add current user to the docker group | |
usermod -aG docker ${USER} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment