Last active
March 10, 2023 13:28
-
-
Save okinjp/af9af5502feb2cb8664993d3d7f6d469 to your computer and use it in GitHub Desktop.
Setup docker and dcoker compose for Linux x86_64 (amd64)
This file contains 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
#!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