参考文献

在 Linux上 安装 Docker

环境说明

  • Docker version 20.10.7, build f0df350
  • CentOS Linux release 8.3.2011

步骤说明

Docker

安装命令
curl -sSL https://get.daocloud.io/docker | sh

Docker Compose

安装命令

curl -L https://get.daocloud.io/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

安装过程

[root@iZbp14vt99zpj8dde2fdlmZ workspace]# curl -L https://get.daocloud.io/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   423  100   423    0     0    500      0 --:--:-- --:--:-- --:--:--   500
100 12.1M  100 12.1M    0     0  9702k      0  0:00:01  0:00:01 --:--:-- 36.3M
[root@iZbp14vt99zpj8dde2fdlmZ workspace]# chmod +x /usr/local/bin/docker-compose
[root@iZbp14vt99zpj8dde2fdlmZ workspace]# docker-compose version
docker-compose version 1.29.2, build 5becea4c
docker-py version: 5.0.0
CPython version: 3.7.10
OpenSSL version: OpenSSL 1.1.0l  10 Sep 2019