10
8

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.

AlmaLinuxにDockerとdocker-composeを導入する

Last updated at Posted at 2022-08-04

Dockerインストール

# dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# dnf -y install docker-ce docker-ce-cli containerd.io

Docker起動&起動設定

# systemctl start docker
# systemctl enable docker

確認

バージョン確認できればOK!

# docker --version
Docker version 20.10.17, build 100c701

Docker Composeインストール

# curl -L "https://github.com/docker/compose/releases/download/v2.4.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

実行権限付与

# chmod +x /usr/local/bin/docker-compose

確認

バージョン確認できればOK!

# docker-compose --version
Docker Compose version v2.4.1
10
8
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
10
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?