外贸网站建设模板,windows 2003 取消网站访问密码,手机网站生成代码,晋江网站建设费用最近docker镜像都不能访问#xff0c;目前亲测可用的docker镜像可用#xff0c;并拉取mysql测试完成。 [缺点] docker search 查不到镜像的索引列表#xff0c;只能手动查询索引目录#xff08;解决方案在最后#xff09;。 linux服务器vim打开镜像文件daemon.json vim /e… 最近docker镜像都不能访问目前亲测可用的docker镜像可用并拉取mysql测试完成。 [缺点] docker search 查不到镜像的索引列表只能手动查询索引目录解决方案在最后。 linux服务器vim打开镜像文件daemon.json vim /etc/docker/daemon.json 添加以下镜像 {registry-mirrors: [https://docker.1panelproxy.com,https://2m11665s.mirror.aliyuncs.com,https://registry.docker-cn.com,https://dockerhub.azk8s.cn,https://docker.mirrors.ustc.edu.cn,http://hub-mirror.c.163.com,https://k8s.gcr.io,https://github-releases.githubusercontent.com,https://vsxcs7sq.mirror.aliyuncs.com,https://ustc-edu-cn.mirror.aliyuncs.com]
}重新加载镜像文件 systemctl daemon-reload重启docker容器 systemctl restart docker测试拉取mysql镜像
[root192 ~]# docker pull mysql
Using default tag: latest
latest: Pulling from library/mysql
2c0a233485c3: Pull complete
cb5a6a8519b2: Pull complete
570d30cf82c5: Pull complete
a841bff36f3c: Pull complete
80ba30c57782: Pull complete
5e49e1f26961: Pull complete
ced670fc7f1c: Pull complete
0b9dc7ad7f03: Pull complete
cd0d5df9937b: Pull complete
1f87d67b89c6: Pull complete
Digest: sha256:0255b469f0135a0236d672d60e3154ae2f4538b146744966d96440318cc822c6
[root192 ~]# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
mysql latest 56a8c14e1404 2 months ago 603MB查询仓库索引的方法 以前使用docker search命令进行镜像查询目前此命令查询会报以下错误 解决方案在docker search 后添加: register.liberx.info/镜像名称 docker search register.liberx.info/mysql查询Description的详情 docker search register.liberx.info/portainer --no-trunc --limit 5格式化查询 docker search register.liberx.info/portainer --no-trunc --limit 5 --format {{.Name}}: {{.Description}}运行docker的图形化界面portainer-ce docker run -d -p 9000:9000 --nameportainer --restartalways -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer启动页面访问linuxip9000 tips: 第一次访问需要创建密码