Skip to content

Instantly share code, notes, and snippets.

@defaye
Last active July 12, 2021 11:06
Show Gist options
  • Save defaye/a6372a1b16372ac2970e0f578abf8864 to your computer and use it in GitHub Desktop.
Save defaye/a6372a1b16372ac2970e0f578abf8864 to your computer and use it in GitHub Desktop.
Install Docker and Docker Compose
# https://docs.docker.com/engine/install/ubuntu/#install-using-the-convenience-script
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
# https://docs.docker.com/compose/install/
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
docker run hello-world
@defaye
Copy link
Author

defaye commented Jun 2, 2020

To run this command in one line:

curl -s https://gist.githubusercontent.com/defaye/a6372a1b16372ac2970e0f578abf8864/raw/6f2c653fb2dd0b4c6f781cb99e6627d33e03fdd4/install_docker.sh | sh

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