Last active
February 1, 2019 13:35
-
-
Save joefutrelle/59787109d7dc5c40495f5e0d37de387e to your computer and use it in GitHub Desktop.
Install Docker in Debian
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
# current as of 2018-12-10 | |
# install docker-ce: https://docs.docker.com/install/linux/docker-ce/debian/#install-docker-ce-1 | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/debian \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt-get update | |
sudo apt-get install -y docker-ce | |
# install docker-compose: https://docs.docker.com/compose/install/#install-compose | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that if you're doing this in Vagrant it is helpful to add the
vagrant
user to thedocker
group