Skip to content

Instantly share code, notes, and snippets.

@joefutrelle
Last active February 1, 2019 13:35
Show Gist options
  • Save joefutrelle/59787109d7dc5c40495f5e0d37de387e to your computer and use it in GitHub Desktop.
Save joefutrelle/59787109d7dc5c40495f5e0d37de387e to your computer and use it in GitHub Desktop.
Install Docker in Debian
# 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
@joefutrelle
Copy link
Author

Note that if you're doing this in Vagrant it is helpful to add the vagrant user to the docker group

sudo usermod -aG docker vagrant

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