• 新装docker 从本地仓库下载


    docker:/root# docker images
    Get http:///var/run/docker.sock/v1.19/images/json: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
    docker:/root# /etc/init.d/docker start
    Starting cgconfig service:                                 [  OK  ]
    Starting docker:	                                   [  OK  ]
    docker:/root# docker images
    REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
    docker:/root#  curl http://192.168.32.150:5000/v1/search
    {"num_results": 3, "query": "", "results": [{"description": "", "name": "library/zjzc_centos6.5_template"}, {"description": "", "name": "library/zjzc_linux123"}, {"description": "", "name": 
    
    "library/zjzc-test03"}]}docker:/root# 
    docker:/root# 
    docker:/root# docker images
    REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
    docker:/root# 
    docker:/root# 
    
    docker:/root# docker pull  192.168.32.150:5000/zjzc_centos6.5_template
    Error response from daemon: invalid registry endpoint https://192.168.32.150:5000/v0/: unable to ping registry endpoint https://192.168.32.150:5000/v0/
    v2 ping attempt failed with error: Get https://192.168.32.150:5000/v2/: EOF
     v1 ping attempt failed with error: Get https://192.168.32.150:5000/v1/_ping: EOF. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-
    
    registry 192.168.32.150:5000` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at 
    
    /etc/docker/certs.d/192.168.32.150:5000/ca.crt
    docker:/root# vim /etc/init.d/docker 
    
    
    解决方法:
    
    /etc/init.d/docker 加上:
    
     $exec -d --insecure-registry 192.168.32.150:5000 $other_args &>> $logfile &
    
    
    docker:/root# docker pull  192.168.32.150:5000/zjzc_centos6.5_template
    Pulling repository 192.168.32.150:5000/zjzc_centos6.5_template
    f01c69d919d1: Download complete 
    511136ea3c5a: Download complete 
    1d6ebc5c68b1: Download complete 
    f01c1b138488: Download complete 
    9e2de3fc0748: Download complete 
    a05f15a89c8d: Download complete 
    Status: Downloaded newer image for 192.168.32.150:5000/zjzc_centos6.5_template:latest
    

  • 相关阅读:
    软件架构入门
    深入理解JSCore
    原生开发小程序 和 wepy 、 mpvue, Taro 对比
    安装淘宝npm(cnpm)
    CSS预处理器—Sass、LESS和Stylus
    PHP和java比较
    DevOps 在公司项目中的实践落地
    Facebook的React Native之所以能打败谷歌的原因有7个(ReactNative vs Flutter)
    Android 9.0新特性
    主流前端框架对比:Vue.js , React, Angular.js
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13350938.html
Copyright © 2020-2023  润新知