Skip to content

Instantly share code, notes, and snippets.

@enric1994
Last active November 9, 2020 07:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enric1994/3b5c20ddb2b4033c4498b92a71d909da to your computer and use it in GitHub Desktop.
Save enric1994/3b5c20ddb2b4033c4498b92a71d909da to your computer and use it in GitHub Desktop.
Install Docker and Docker-Compose in 10 seconds
  1. Install docker: curl -sSL https://get.docker.com/ | sh
  2. Install docker compose:
  • Check the latest release at https://github.com/docker/compose/releases
  • Using latest version : sudo curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
  • sudo chmod +x /usr/local/bin/docker-compose
  1. Setup docker to work without sudo: sudo usermod -aG docker $USER
  2. Log out from the computer.
  3. Log in and check version: docker -v; docker-compose -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment