请参考菜鸟教程 https://www.runoob.com/docker/centos-docker-install.html
安装完成后执行docker version
Client: Docker Engine - Community
Version: 20.10.2
API version: 1.41
Go version: go1.13.15
Git commit: 2291f61
Built: Mon Dec 28 16:17:48 2020
OS/Arch: linux/amd64
Context: default
Experimental: true
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
需要更改更改daemon.json https://www.yuque.com/liming-3snkz/cu091z/ok593a