zoukankan      html  css  js  c++  java
  • dockercompose up build fail

    docker https://auth.docker.io/token dial tcp lookup auth.docker.io i/o timeo

    Error response from daemon: Get https://registry-1.docker.io/v2/library/alpine/manifests/latest21: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Falpine%3Apull&service=registry.docker.io12: dial tcp: lookup auth.docker.io on 192.168.xx.1:53: no such host

    resolve method:   

    This seems to be a problem with your DNS loading an older entry.

    Is this on Mac or Windows?

    Try:

      1. Click on the Docker CLI button or ( Docker Quickstart Terminal)
        image
      2. Type in docker-machine ssh
      3. echo "nameserver 8.8.8.8" > /etc/resolv.conf

    from:https://github.com/docker/kitematic/issues/718

    otherway : 

    update your dockerfile 

    version: '2'
    services:
    app_name:
    build: ./node
    volumes:
    - ./node/source:/source
    - ./node/source/src:/source/src:ro
    dns:
    - 8.8.8.8
    - 114.114.114.114

     question:

    failed to build: Get https://registry-1.docker.io/
    v2/library/node/manifests/latest: Get https://auth.docker.io/token?scope=reposit
    ory%3Alibrary%2Fnode%3Apull&service=registry.docker.io: dial tcp: lookup auth.do
    cker.io on 8.8.8.8:53: read udp 10.0.2.15:51090->8.8.8.8:53: i/o timeout

    resolve:  please try more times .because of the Great Fuck Wall 

    otherLink:  https://it-consultis.com/cn/blog/docker-dns-google-huan-you-ni

    https://github.com/kairyou/demo/tree/master/docker

    https://wiki.shileizcc.com/display/DOC/Docker+Compose

    http://blog.csdn.net/gsying1474/article/details/51405123

  • 相关阅读:
    IO流
    泛型类
    自动打包&解包:auto-boxing&unboxing
    Map接口
    如何选择数据结构
    Compareable接口
    List常用算法
    equals和==
    List接口
    set接口
  • 原文地址:https://www.cnblogs.com/lavin/p/6848004.html
Copyright © 2011-2022 走看看