Last active
December 31, 2019 00:16
-
-
Save leodc/cda3c9263a392ee2cb780b027edc228a to your computer and use it in GitHub Desktop.
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
#!/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