Created
June 14, 2019 16:44
-
-
Save get-data-/490c5e0292095219828be4969001576f to your computer and use it in GitHub Desktop.
Update docker compose to latest version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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
sudo ln /usr/local/bin/docker-compose /usr/bin