**使用YUM安装 Docker CE**
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
**安装最新版本的Docker CE和containerd**
sudo yum install docker-ce docker-ce-cli containerd.io
**查看 Docker 版本号**
$ docker version
**启动 Docker**
service docker start
**显示 Docker 状态**
service docker status
**停止 Docker**
service docker stop