Docker pull網絡錯誤
阿新 • • 發佈:2018-09-11
tran rhs restart support develop dial openshift main bit
[root@Oracle ~]# 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配置文件
[root@Oracle ~]# vi /etc/docker/daemon.json
2. 添加Docker倉庫
{ "registry-mirrors": ["https://registry.docker-cn.com"] }
3. 重啟Docker服務
[root@Oracle ~]# service docker restart
4. 測試
[root@Oracle ~]# 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網絡錯誤