系统版本:CentOS Linux release 8.5.2111
查看系统版本命令:cat /etc/redhat-release
安装docker:yum install -y docker-ce-18.03.1.ce-1.el7.centos.x86_64.rpm
启动:systemctl start docker.service
开机启动:systemctl enable docker.service
docker 版本:docker version
Client:
Version: 18.03.1-ce
API version: 1.37
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:20:16 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.03.1-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:23:58 2018
OS/Arch: linux/amd64
Experimental: false