1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【備忘録】amazon linux 2023 に docker composeとgithub cliを入れる

Posted at

docker

sudo dnf install -y docker
sudo systemctl enable --now docker
sudo systemctl status docker
sudo usermod -aG docker ec2-user

sudo chmod 666 /var/run/docker.sock

docker compose

DOCKER_CONFIG=${DOCKER_CONFIG:-/usr/local/lib/docker}
sudo mkdir -p $DOCKER_CONFIG/cli-plugins
sudo curl -SL https://github.com/docker/compose/releases/download/v2.17.0/docker-compose-linux-aarch64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose

最新バージョンは https://github.com/docker/compose/releases/latest へアクセスすると見れる

git

sudo dnf install git

github cli

sudo dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
sudo dnf install gh

最後に

これらが入ってれば後はもういらないでしょ

参考

https://oddguy.hatenablog.com/entry/2023/05/16/104117
https://densan-hoshigumi.com/aws/amzn2023-docker-install
https://github.com/cli/cli/blob/trunk/docs/install_linux.md#fedora-centos-red-hat-enterprise-linux-dnf

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?