Skip to content

Instantly share code, notes, and snippets.

@get-data-
Created June 14, 2019 16:44
Show Gist options
  • Save get-data-/490c5e0292095219828be4969001576f to your computer and use it in GitHub Desktop.
Save get-data-/490c5e0292095219828be4969001576f to your computer and use it in GitHub Desktop.
Update docker compose to latest version
# Remove old version
sudo apt-get remove docker-compose
# Discover newest version
# sudo apt install jq
VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r)
DESTINATION=/usr/local/bin/docker-compose
# Fetch latest version and give it permission
sudo curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m) -o $DESTINATION
sudo chmod 755 $DESTINATION
@get-data-
Copy link
Author

sudo ln /usr/local/bin/docker-compose /usr/bin

@get-data-
Copy link
Author

1. Create the docker group.

$ sudo groupadd docker

2. Add your user to the docker group.

$ sudo usermod -aG docker $USER

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