zoukankan      html  css  js  c++  java
  • windows系统安装docker

    1、https://www.docker.com/ 下载对应平台的客户端 
          注意: 因为系统的版本问题,Windows的家庭版目前还是不支持,如果必须安装此软件,可以按规定提示,选择适合的系统,Windows 10专业版或企业版或学习版支持。
          为了以后也会使用类似工具,可以通过下载docker toolbox工具去安装

     

    2、安装docker toolbox的注意事项

    打开Docker Quickstart Terminal后遇到的几个问题
    问题一:
    安装之后双击Docker Quickstart Terminal,可能会提示你缺少快捷方式,找不到base.exe这个程序,这是因为你之前已经安装过Git,导致默认Git的地址不对。

    解决方法
    右键点击Docker Quickstart Terminal,在属性里面的目标修改正确的路径(你自己安装的Git的实际地址),再点击“应用”。


    问题二:
    报错。。。

    Docker Machine is not installed. Please re-run the Toolbox Installer and try again.

    Looks like something went wrong in step ´Looking for vboxmanage.exe´... Press any key to continue…
    1
    2
    3
    解决方法
    以管理员身份运行Docker Quickstart Terminal。还有个一劳永逸的方法,右键点击Docker Quickstart Terminal,在属性的“兼容性”里勾选“以管理员身份运行此程序”。

    如果没用,再尝试环境配置,参考:https://www.cnblogs.com/zxcnb/p/10822417.html


    问题三:
    报错。。。

    Running pre-create checks...
    (default) Default Boot2Docker ISO is out-of-date, downloading the latest release...
    (default) Latest release for github.com/boot2docker/boot2docker is vl.10.3
    (default) Downloading C:UsersJiml.dockermachinecacheoot2docker.iso from https://github.com/boot2dock/releases/download/v1.10.3/boot2docker. iso..
    Error with pre-create check:"Get https://github.com/boot2docker/boot2docker/releases/download/v1.10.3/boo dial tcp 192.30.252.128:443: connectex:A Cbnhectioh fttemtlFailea blaause-the' connected party did not pr after a period of time, or established connection failed because connected host has failed to respond.
    You can further specify your shell with either' cmd' or ' powershell' with the--shell flag.
    Looks like something went wrong... Press any key to continue...
    1
    2
    3
    4
    5
    6
    7
    这是因为没有找到默认的boot2docker镜像的原因,它告诉你去github下载。其实不用下载,在一开始安装好的DockerToolbox根目录下就有一个boot2docker。


    解决方法
    把boot2docker.iso复制到,bash所提示找不到的那个目录下(我这里是C:UsersAdministrator.dockermachinecache)。然后再次双击Docker Quickstart Terminal图标,结尾出现 Start interactive shell 说明安装成功。


    问题四:
    报错。。。

    bash: #!/bin/bash: No such file or directory
    1
    原因是打开 .sh 文件(如上图的start.sh文件)并修改后,保存的编码格式有问题,是utf-8 with BOM 格式。

    解决方法
    把 utf-8 with BOM 格式改成 utf-8 格式。我是用VS Code编译器打开,修改编码方式的。
    ————————————————

    附:tool的下载地址

    1、https://github.com/docker/toolbox/releases

    2、http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/

  • 相关阅读:
    (转载)什么时候需要用到try-catch
    直接打印Java的对象时输出的到底是什么
    关于图像语义分割的总结和感悟(转载)
    面经
    石家庄停车位在线预约平台16
    石家庄停车位在线预约平台15
    石家庄停车位在线预约平台14
    石家庄停车位在线预约平台13
    石家庄停车位在线预约平台12
    石家庄停车位在线预约平台11
  • 原文地址:https://www.cnblogs.com/sunala/p/13200694.html
Copyright © 2011-2022 走看看