Docker架构

安装 docker-ce
yum install docker-ce docker-ce-cli containerd.io -y
注:
docker-ce #作用是 docker 服务包
docker-ce-cli #作用是 docker 命令行工具包
containerd.io #作用是容器接口相关包
替换 /etc/docker/daemon.json文件种内容,将以下
"registry-mirrors": ["https://e9yneuy4.mirror.aliyuncs.com"]
替换为以下
{"registry-
mirrors":["https://hub.xdark.top" "https://hub.littlediary.cn","https://dockerpull.org" "https://hub.crdz.gq","http://docker.1panel.live","https://docker.unsee.tech" "https://docker.udayun.com","https://docker,kejilion.pro","https://registry.dockermirror.com","https://docker.rainbond.cc" "https://hub.geekery.cn" "https://docker.1panelproxy.com" "https://docker.inkedbus.com","https://docker.nastool.de"]}
然后重启docker
systemctl restart docker
方法 1:在线拉取镜像<
root@xuegod63 docker]# docker pull nginx
方法 2:离线导入镜像"
把之前下载好的 image 镜像导入image:
参数:-i docker-centos-httpd-image.tar 指定载入的镜像归档。