Created
November 1, 2021 08:19
-
-
Save ionutale/f53de5200599c32d610c00bf9e4ebb3d to your computer and use it in GitHub Desktop.
install-docker-in-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
# Update the apt package index and install packages to allow apt to use a repository over HTTPS | |
sudo apt update | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
# Add Docker’s official GPG key | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# The following command is to set up the stable repository | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu `lsb_release -cs` stable" | |
# Update the apt package index, and install the latest version of Docker Engine and containerd, or go to the next step to install a specific version | |
sudo apt update | |
sudo apt install -y docker-ce |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment