Skip to content

Instantly share code, notes, and snippets.

@Merwanski
Created February 21, 2022 21:55
Show Gist options
  • Save Merwanski/13f00406f4ce6ba6e6e89e0734c3057d to your computer and use it in GitHub Desktop.
Save Merwanski/13f00406f4ce6ba6e6e89e0734c3057d to your computer and use it in GitHub Desktop.
Install docker
#!/bin/bash
# Installation instructions from https://docs.docker.com/engine/install/ubuntu/
# Update the apt package index and install packages to allow apt to use a repository over HTTPS:
sudo apt update
sudo apt 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 | sudo apt-key add -
# Use the following command to set up the stable repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# INSTALL DOCKER ENGINE
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment