zoukankan      html  css  js  c++  java
  • Docker镜像加速

    镜像加速
    从官方pull镜像太慢了。例如下面的一个镜像。
    https://hub.docker.com/r/apolloconfig/apollo-portal
     

    进入docker在本机的配置目录:

    命令:cd /etc/docker

    找到daemon.json文件,如果没有就新建一个:

    修改内容为如下

    {
    
        "registry-mirrors":["https://almtd3fa.mirror.aliyuncs.com"]      
    
    }

    然后在重启docker服务

    service docker restart
     
     
    其他的一些配置
    insecure-registries:私有镜像仓库
    "insecure-registries":["ip:端口","ip:端口",]
    
    
    registry-mirrors:镜像加速地址,一般改为国内的
    "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"] 
    Docker 官方中国区: https://registry.docker-cn.com
    网易: http://hub-mirror.c.163.com
    中科大: https://docker.mirrors.ustc.edu.cn
      "registry-mirrors" : [
        "http://ovfftd6p.mirror.aliyuncs.com",
        "http://registry.docker-cn.com",
        "http://docker.mirrors.ustc.edu.cn",
        "http://hub-mirror.c.163.com"
      ]
    
    
    "hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]
     
     
  • 相关阅读:
    oracle行转列
    JVM设置空间大小
    Spring AOP 业务权限管理
    清晨漫步
    pull解析xml(android)
    今昔何昔
    Spring: Document root element "beans", must match DOCTYPE root "null
    xfire
    心之所向
    Oracle数据库连接
  • 原文地址:https://www.cnblogs.com/wudequn/p/13661069.html
Copyright © 2011-2022 走看看