Skip to content

Instantly share code, notes, and snippets.

@47star
Last active September 10, 2021 10:06
Show Gist options
  • Save 47star/b29291cc55ffa0078a36596a1bdeef74 to your computer and use it in GitHub Desktop.
Save 47star/b29291cc55ffa0078a36596a1bdeef74 to your computer and use it in GitHub Desktop.
Docker installation script for Ubuntu
#!/bin/bash
sudo apt-get update -y
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update -y
sudo apt-get install docker-ce docker-ce-cli containerd.io -y
sudo usermod -aG docker $USER
@47star
Copy link
Author

47star commented Dec 29, 2020

curl https://gist.githubusercontent.com/donghoon-yoo/b29291cc55ffa0078a36596a1bdeef74/raw/f350deb7fc4748d21c0ca5a46cb1a7da66002f8a/docker-installation-ubuntu.sh | sudo bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment