docker 下载及配置镜像加速器
docker下载安装
卸载旧版本
1 | yum remove docker \ |
安装依赖包
1 | sudo yum install -y yum-utils |
设置镜像仓库
1 | # 1)官方镜像源 |
更新 yum 软件包索引
1 | yum makecache fast |
下载 docker 依赖包
1 | yum -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin |
启动 docker
1 | systemctl start docker |
查看版本号
1 | docker version |
测试 hello-world
1 | docker run hello-world |
查看 hello-world 镜像
1 | [root@iZbp1guc0wov85gocdqeaiZ ~]# docker images |
卸载 docker(共3步)
1 | yum remove docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras //卸载依赖包 |
配置镜像加速器
1 | 登入aliyun,找到容器镜像加速器 |
重启 docker 服务
1 | systemctl daemon-reload //重启镜像 |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Dong_Blog!









