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应该就不会出现这个问题了,如果不是就要自己指定一下文件名称

  • 相关阅读:
    崩漏
    李翰卿治疗小儿五更咳嗽经验
    34名国宝级名老中医秘方集锦(一)
    黄煌儿科经方
    中医临床参考
    HTML 动态云启动画面
    CANVAS 水波动态背景
    PHP MYSQL单向同步方案
    PHP 获取指定目录下所有文件(包含子目录)
    JS 深度拷贝 Object Array
  • 原文地址:https://www.cnblogs.com/wspblog/p/6208309.html
Copyright © 2011-2022 走看看