Skip to content

Instantly share code, notes, and snippets.

@okinjp
Last active March 10, 2023 13:28
Show Gist options
  • Save okinjp/af9af5502feb2cb8664993d3d7f6d469 to your computer and use it in GitHub Desktop.
Save okinjp/af9af5502feb2cb8664993d3d7f6d469 to your computer and use it in GitHub Desktop.
Setup docker and dcoker compose for Linux x86_64 (amd64)
#!bin/bash
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# 不要
# DOCKER_COMPOSE_LATEST_URL=https://api.github.com/repos/docker/compose/releases/latest
# DL_URL=$(curl $DOCKER_COMPOSE_LATEST_URL -fsSL | \
# jq -Mr '.assets[].browser_download_url' | \
# grep -e docker-compose-linux-x86_64\$)
# sudo curl $DL_URL -fsSL -o /usr/local/lib/docker/cli-plugins/docker-compose
# sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
# 不要ここまで
sudo docker compose version
sudo usermod -aG docker $(whoami)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment