Skip to content

Instantly share code, notes, and snippets.

@okyanusoz
Created December 5, 2020 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okyanusoz/ed6f25c8d73cc49f76c9d5d890cac7f0 to your computer and use it in GitHub Desktop.
Save okyanusoz/ed6f25c8d73cc49f76c9d5d890cac7f0 to your computer and use it in GitHub Desktop.
A script to quickly setup Docker

This is a script that installs Docker
NOTE: This script does not add your user to the docker group, it simply installs Docker
This will not install Docker Compose, but there is a script that does that here.
You need to run the script as root.

# Docker install guide from https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04
echo Running apt update...
apt update
echo Installing dependencies
sudo apt install apt-transport-https ca-certificates curl software-properties-common
echo Adding GPG key...
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
echo Adding Docker repository...
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
echo Running apt update...
apt update
echo Installing Docker...
apt install docker-ce
echo Finished
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment