0
1

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.

centos 8 に docker,docker-composeをインストールする方法

Posted at

前提環境

[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 8.0.1905 (Core)

[root@localhost ~]# uname -r
4.18.0-80.el8.x86_64

更新

# dnf -y update

#repo登録

# dnf repolist
# dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.2-3.3.el7.x86_64.rpm
dnf install containerd.io-1.2.2-3.3.el7.x86_64.rpm

systemctl設定

# systemctl start docker
# systemctl enable docker

docker-composeのインストール

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

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

docker version確認

# docker --version
Docker version 19.03.5, build 633a0ea

# docker-compose --version
^[[Adocker-compose version 1.25.0, build 0a186604
0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?