Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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