Docker安装
1:首先安装yum-utils,以便添加 Docker 的源。
yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
2:安装 Docker
yum install docker-ce docker-ce-cli containerd.io
3:配置
3-1 启动: systemctl start docker
3-2 查看运行: docker ps
3-3 开机自启:systemctl enable docker
3-4 安装成功: docker run hello-world
