Skip to content

Instantly share code, notes, and snippets.

@leodc
Last active December 31, 2019 00:16
Show Gist options
  • Save leodc/cda3c9263a392ee2cb780b027edc228a to your computer and use it in GitHub Desktop.
Save leodc/cda3c9263a392ee2cb780b027edc228a to your computer and use it in GitHub Desktop.
#!/bin/bash
# install dependencies
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
# add repo
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# update
sudo apt update
# install
sudo apt install -y docker-ce
# setup service
sudo systemctl enable docker
sudo systemctl start docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment