centos 安装 docker
文章目录
1.安装工具和驱动包
yum install -y yum-utils device-mapper-persistent-data lvm22.配置国内yum源
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum makecache fast3.安装docker
yum -y install docker-ce4.启动docker
service docker start
docker version5.hello world
docker pull hello-world
docker run hello-world6. 阿里云镜像加速配置
登陆 https://cr.console.aliyun.com
查看个人专属加速地址。
vi /etc/docker/daemon.json
{
"registry-mirrors": ["https://xxxxxx.mirror.aliyuncs.com"]
}sudo systemctl daemon-reload
sudo systemctl restart docker 本文由 奔跑的杂粮煎饼 发布!
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论