前提環境
[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