zoukankan      html  css  js  c++  java
  • docker 初探之简单安装 ----Windows10

    报错一

    $ docker run hello-world
    Unable to find image 'hello-world:latest' locally
    Pulling repository docker.io/library/hello-world
    K:Docker Toolboxdocker.exe: Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/hello-world/images. You may want to check your internet connection or if you are behind a proxy..
    See 'K:Docker Toolboxdocker.exe run --help'.
    

    打开Docker Quickstart Terminal

    #docker-machine ssh default
    
    #sudo vi /var/lib/boot2docker/profile
    
    
    export 'HTTPS_PROXY=http://PROXY:PORT'
    
    docker@default:~$ sudo /etc/init.d/docker restart
        Need TLS certs for default,127.0.0.1,10.0.2.15,192.168.99.100 
    
    docker@default:~$ exit
    

    报错二

    #docker build -t docker-whale .
    unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx C:UsersAdministratorDesktop	estdockerDockerfile: The system cannot find the file specified.
    

    解决方法

    docker build -t docker-whale  -f /Dockerfiler .
    

    如果当时建的文件是Dockerfile应该就不会出现这个问题了,如果不是就要自己指定一下文件名称

  • 相关阅读:
    读《大道至简》第一章有感
    jdk和jre的区别
    题解 LA2911
    题解 UVa11461
    题解 UVa10791
    题解 UVa11489
    题解 LA2889
    题解 UVa11609
    题解 UVa11076
    题解 UVa11752
  • 原文地址:https://www.cnblogs.com/wspblog/p/6208309.html
Copyright © 2011-2022 走看看