10
7

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 3 years have passed since last update.

CentOS8 Docker/Docker Composeインストール

Last updated at Posted at 2020-04-25

#はじめに
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/

以上

10
7
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
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?