5
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

posted at

updated at

CentOS8 Docker/Docker Composeインストール

はじめに

CentOS8にDockerをインストールするメモです。

repo追加

dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

image.png

dockerインストール

dnf -y install --nobest docker-ce docker-ce-cli

image.png

自動起動有効化

systemctl enable docker

docker起動

systemctl start docker

docker-composeインストール

ダウンロード

wget https://github.com/docker/compose/releases/download/1.25.5/docker-compose-Linux-x86_64

/usr/local/bin/に配置

mv docker-compose-Linux-x86_64 /usr/local/bin/docker-compose

実行権限追加

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

バージョン確認

docker-compose --version

docker-compose version 1.25.5, build 8a1c60f6

参考ページ:https://docs.docker.com/compose/install/

以上

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
5
Help us understand the problem. What are the problem?