“Docker国内镜像的配置及使用”的版本间的差异
跳到导航
跳到搜索
小 (导入1个版本) |
(→err) |
||
第4行: | 第4行: | ||
Using default tag: latest | Using default tag: latest | ||
Error response from daemon: Get https://registry-1.docker.io/v2/library/tomcat/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Ftomcat%3Apull&service=registry.docker.io: net/http: TLS handshake timeout | Error response from daemon: Get https://registry-1.docker.io/v2/library/tomcat/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Ftomcat%3Apull&service=registry.docker.io: net/http: TLS handshake timeout | ||
+ | |||
+ | |||
+ | docker build 报错: | ||
+ | |||
+ | error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/13/13efce2de9076d5e1f80373bd5ffa86743c91d74451a68cb63f9df9c08b0c054/data?verify=1592982438-zaYzzEYNl5or1tUf06eawIWZFQM%3D: dial tcp xxxxxx: i/o timeout | ||
</pre> | </pre> | ||
+ | |||
=阿里云的Docker加速器= | =阿里云的Docker加速器= | ||
2020年8月1日 (六) 08:23的最新版本
目录
err
tomcat$ docker pull tomcat Using default tag: latest Error response from daemon: Get https://registry-1.docker.io/v2/library/tomcat/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Ftomcat%3Apull&service=registry.docker.io: net/http: TLS handshake timeout docker build 报错: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/13/13efce2de9076d5e1f80373bd5ffa86743c91d74451a68cb63f9df9c08b0c054/data?verify=1592982438-zaYzzEYNl5or1tUf06eawIWZFQM%3D: dial tcp xxxxxx: i/o timeout
阿里云的Docker加速器
获取专属加速器地址
登录阿里云,访问 https://cr.console.aliyun.com/#/accelerator 获取专属Docker加速器地址
配置
安装/升级你的Docker客户端
推荐安装1.10.0以上版本的Docker客户端。 您可以通过阿里云的镜像仓库下载:docker-engine、docker-ce 或执行以下命令:
curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh -
如何使用Docker加速器
#这个是我操作的 针对Docker客户端版本大于1.10的用户 您可以通过修改daemon配置文件/etc/docker/daemon.json来使用加速器: sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["https://evanm59e5.mirror.aliyuncs.com"] } EOF sudo systemctl daemon-reload sudo systemctl restart docker
docker pull mysql 8181cde51c65: Waiting error pulling image configuration: Get https://dseasb33srnrn.cloudfront.net/registry-v2/docker/registry/v2/blobs/sha256/51/5195076672a7e30525705a18f7d352c920bbd07a5ae72b30e374081fe660a011/data?Expires=1523301395&Signature=SeIRwHJuL7BX1PvJRCNRZNp5RL1fdqY1-pl6PaepgU-wbFrP0mCMNiT30Ro67Zu9AKlkvxtEy8rruXwZoSS3oKxlHpXK1xQO03Nq4C86LxzgE8rtLg6oQfgCCo5flw9J-4MqOJiKP7cRf~o4AT9ahUVd7nugMcnXbs2XROWFkq4_&Key-Pair-Id=APKAJECH5M7VWIS5YZ6Q: net/http: TLS handshake timeout 解决办法 上面的使用Docker加速器
daocloud
curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://5a71e0d8.m.daocloud.io Copy
该脚本可以将 --registry-mirror 加入到你的 Docker 配置文件 /etc/docker/daemon.json 中。适用于 Ubuntu14.04、Debian、CentOS6 、CentOS7、Fedora、Arch Linux、openSUSE Leap 42.1