Skip to content

Instantly share code, notes, and snippets.

@theoparis
Last active November 28, 2021 04:10
Show Gist options
  • Save theoparis/2363097a783246de0635c737c1545de7 to your computer and use it in GitHub Desktop.
Save theoparis/2363097a783246de0635c737c1545de7 to your computer and use it in GitHub Desktop.
install docker

Docker Quick Install Script

Run the following command to get started:

# use paru -S docker on arch linux
curl -fsSL https://get.docker.com | sh

curl -L https://gist.github.com/creepinson/2363097a783246de0635c737c1545de7/raw/3eadcae7a5a441f3e1141f3e5a0a81ea6418b3f3/docker.sh | sudo sh

Requirements

  • curl

What It Does

This script installs the latest docker and docker-compose version for your system, without having to maintain version numbers. It pulls the versions from docker's github releases.

Changelog

usermod -aG docker $USER
rm -r /usr/local/bin/com.docker.cli
export COMPOSE_VERSION=${COMPOSE_VERSION:-v2.0.0-rc.2}
mkdir -p ~/.docker/cli-plugins/
curl -L https://github.com/docker/compose-cli/releases/download/${COMPOSE_VERSION}/docker-compose-linux-amd64 -o ~/.docker/cli-plugins/docker-compose
chmod +x ~/.docker/cli-plugins/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment