与
ESC
输入关键词搜索文章

docker pull很慢的解决方法

全文约 263 字预计阅读 1 分钟
今天线上服务器测试docker 在拉php5.3.29的时候发现竟然掉线了
[root@netp.com.cn~]# docker pull php:5.3.29-fpm
Pulling repository php
php:5.3.29-fpmGet https://registry-1.docker.io/v1/repositories/library/php/tags: read tcp 34.205.207.96:443: i/o timeout
有没有发现超时了,尝试了很多次都行。 最后找了个镜像一下次就搞定了,用pull上直接指定daocloud.io即可,当然还有其它镜像例如阿里云之类的。
[root@netpc.com.cn~]# docker pull daocloud.io/library/php:5.3.29
5.3.29: Pulling from daocloud.io/library/php

3690474eb5b4: Pull complete 
000e626f3e24: Pull complete 
93b7a6fbb8ca: Pull complete 
b0deb4620cac: Pull complete 
0bc0ebd7adce: Pull complete 
f5cb651f164e: Pull complete 
d07b2849cf17: Pull complete 
3cc31e514678: Pull complete 
35f5af617e67: Pull complete 
666274caa93c: Pull complete 
Digest: sha256:94fae2c176641bb06d95da333bb8e21079a3e5dfc8de404f6bf39708a072ae70
Status: Downloaded newer image for daocloud.io/library/php:5.3.29
[root@netpc.com.cn~]# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
daocloud.io/library/php 5.3.29 666274caa93c 3 years ago 728.5 MB
上面的728.5MB版本 不知道怎么用 上阿里云https://dev.aliyun.com/搜索php 5.3有人分享了个fpm的可以用。 docker pull registry.cn-hangzhou.aliyuncs.com/sjdskl/php5.3-fpm
docker pull很慢的解决方法
分享

发表评论

评论 0 条

暂无评论,来说点什么吧。