Skip to content

Instantly share code, notes, and snippets.

@withakay
Created February 8, 2021 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save withakay/c7dadba4e153f8582d8ff85f91c2b17b to your computer and use it in GitHub Desktop.
Save withakay/c7dadba4e153f8582d8ff85f91c2b17b to your computer and use it in GitHub Desktop.
Install the latest docker-compose
#!/bin/bash
# A script that will always install the latest docker-compose.
# Execute as root.
#
# See official docs for more
# https://docs.docker.com/compose/install/
#
curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
# Optional, create symlink short alias
# sudo ln -s /usr/local/bin/docker-compose /usr/local/bin/doco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment