参考文档

https://docs.docker.com/engine/install/centos/

1、安装最新版本的Docker Engine和容器

  1. yum install docker-ce docker-ce-cli containerd.io

2、启动

  1. systemctl start docker

3、通过运行hello-world映像来验证是否正确安装了Docker Engine

  1. docker run hello-world