Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Linux bootstrap for latest Docker & Docker-compose
#!/usr/bin/env bash
command -v curl >/dev/null 2>&1 || { echo "I require curl but it's not installed." >&2; }
# Variable declarations
# Install Docker
curl -fsSL -o
sudo sh
docker -v
#Add current user to docker group
sudo usermod -aG docker $USER
#Install Docker-compose
sudo curl -L "$COMPOSEVERSION/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
# Bash convenience script
sudo curl -L$COMPOSEVERSION/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment