安装Docker

详细安装步骤

配置阿里docker-ce源

https://mirrors.aliyun.com/docker-ce/

# 安装必要的一些系统工具
yum install yum-utils device-mapper-persistent-data lvm2 -y

# 添加软件源信息
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

# 更新yum
yum makecache fast

docker-ce 软件包安装

yum install docker-ce -y

查看信息

# 启动服务端
systemctl start docker
systemctl enable docker


# 查看信息
docker version

配置 docker 镜像加速

重启并启动测试容器

一键安装脚本

Last updated