Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Install Docker Client (CLI) on Linux
#!/bin/bash
set -e
DIR=~/install-docker-client-temp
mkdir -v --parents $DIR
#https://get.docker.com/builds/Linux/i386/docker-latest.tgz | tar xvz --directory $DIR
curl https://download.docker.com/linux/static/edge/x86_64/docker-17.11.0-ce.tgz | tar xvz --directory $DIR
mv -v $DIR/docker/docker /usr/local/bin/docker
chmod +x /usr/local/bin/docker
curl -L https://github.com/docker/compose/releases/download/1.17.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
#mkdir --parents ~/.config/fish/completions
#mv -v $DIR/docker/completion/fish/docker.fish ~/.config/fish/completions
#mv -v $DIR/docker/completion/bash/docker /etc/bash_completion.d/docker
rm -vR $DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment