1. 添加yum源
# yum install epel-release –y
# yum clean all
# yum update 官网没有这句
# yum list
2. 安装并运行Docker
# yum install docker-io –y
# systemctl start docker
3. 检查安装结果
# docker info
- 出现如下信息表示安装启动成功
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Registries: docker.io (secure)
网友评论