Docker pull网络错误
Posted liuchao102
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Docker pull网络错误相关的知识,希望对你有一定的参考价值。
[[email protected] ~]# docker search centos Error response from daemon: Get https://index.docker.io/v1/search?q=centos&n=25: dial tcp: lookup index.docker.io on 114.114.114.114:53: read udp 192.168.14.87:59750->114.114.114.114:53: i/o timeout
1. 编辑Docker配置文件
[[email protected] ~]# vi /etc/docker/daemon.json
2. 添加Docker仓库
{ "registry-mirrors": ["https://registry.docker-cn.com"] }
3. 重启Docker服务
[[email protected] ~]# service docker restart
4. 测试
[[email protected] ~]# docker search mysql INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED docker.io docker.io/mysql MySQL is a widely used, open-source relati... 6916 [OK] docker.io docker.io/mariadb MariaDB is a community-developed fork of M... 2211 [OK] docker.io docker.io/mysql/mysql-server Optimized MySQL Server Docker images. Crea... 506 [OK] docker.io docker.io/percona Percona Server is a fork of the MySQL rela... 366 [OK] docker.io docker.io/zabbix/zabbix-server-mysql Zabbix Server with MySQL database support 124 [OK] docker.io docker.io/hypriot/rpi-mysql RPi-compatible Docker Image with Mysql 95 docker.io docker.io/zabbix/zabbix-web-nginx-mysql Zabbix frontend based on Nginx web-server ... 66 [OK] docker.io docker.io/centurylink/mysql Image containing mysql. Optimized to be li... 60 [OK] docker.io docker.io/1and1internet/ubuntu-16-nginx-php-phpmyadmin-mysql-5 ubuntu-16-nginx-php-phpmyadmin-mysql-5 43 [OK] docker.io docker.io/centos/mysql-57-centos7 MySQL 5.7 SQL database server 39 docker.io docker.io/mysql/mysql-cluster Experimental MySQL Cluster Docker images. ... 34 docker.io docker.io/tutum/mysql Base docker image to run a MySQL database ... 32 docker.io docker.io/schickling/mysql-backup-s3 Backup MySQL to S3 (supports periodic back... 22 [OK] docker.io docker.io/bitnami/mysql Bitnami MySQL Docker Image 18 [OK] docker.io docker.io/zabbix/zabbix-proxy-mysql Zabbix proxy with MySQL database support 15 [OK] docker.io docker.io/linuxserver/mysql A Mysql container, brought to you by Linux... 14 docker.io docker.io/centos/mysql-56-centos7 MySQL 5.6 SQL database server 10 docker.io docker.io/circleci/mysql MySQL is a widely used, open-source relati... 6 docker.io docker.io/openshift/mysql-55-centos7 DEPRECATED: A Centos7 based MySQL v5.5 ima... 6 docker.io docker.io/mysql/mysql-router MySQL Router provides transparent routing ... 4 docker.io docker.io/jelastic/mysql An image of the MySQL database server main... 1 docker.io docker.io/openzipkin/zipkin-mysql Mirror of https://quay.io/repository/openz... 1 docker.io docker.io/ansibleplaybookbundle/mysql-apb An APB which deploys RHSCL MySQL 0 [OK] docker.io docker.io/cloudfoundry/cf-mysql-ci Image used in CI of cf-mysql-release 0 docker.io docker.io/cloudposse/mysql Improved `mysql` service with support for ... 0 [OK]
以上是关于Docker pull网络错误的主要内容,如果未能解决你的问题,请参考以下文章
使用阿里云服务一键解决docker pull hello-world问题
Docker pull下载出现 error pulling image configuration: