zoukankan      html  css  js  c++  java
  • Windows7/8 Docker 安装

    1 Docker CLI             # 客户端,用来运行docker引擎创建镜像和容器
    2 Docker Machine.          # 可以让你在windows的命令行中运行docker引擎命令
    3 Docker Compose.          # 用来运行docker-compose命令
    4 Kitematic.             # 这是Docker的GUI版本
    5 Docker QuickStart shell.     # 这是一个已经配置好Docker的命令行环境
    6 Oracle VM Virtualbox.       # 虚拟机
    • 下载完成之后直接点击安装,安装成功后,桌边会出现三个图标,入下图所示:
    • 点击 Docker QuickStart 图标来启动 Docker Toolbox终端
    • $ 符号可以输入以下命令来执行
     1 $ docker run hello-world
     2  Unable to find image 'hello-world:latest' locally
     3  Pulling repository hello-world
     4  91c95931e552: Download complete
     5  a8219747be10: Download complete
     6  Status: Downloaded newer image for hello-world:latest
     7  Hello from Docker.
     8  This message shows that your installation appears to be working correctly.
     9 
    10  To generate this message, Docker took the following steps:
    11   1. The Docker Engine CLI client contacted the Docker Engine daemon.
    12   2. The Docker Engine daemon pulled the "hello-world" image from the Docker Hub.
    13      (Assuming it was not already locally available.)
    14   3. The Docker Engine daemon created a new container from that image which runs the
    15      executable that produces the output you are currently reading.
    16   4. The Docker Engine daemon streamed that output to the Docker Engine CLI client, which sent it
    17      to your terminal.
    18 
    19  To try something more ambitious, you can run an Ubuntu container with:
    20   $ docker run -it ubuntu bash
    21 
    22  For more examples and ideas, visit:
    23   https://docs.docker.com/userguide/
    • 启动不了docker quickstart terminal
      • Docker Quickstart Terminal 快捷方式绑定的git的bash.exe位置不对,导致找不到bash.exe:右键,属性,修改快捷方式的连接位置("C:Program FilesGitinash.exe" --login -i "C:Program FilesDocker Toolboxstart.sh")中git的位置为真正的git的bash.exe(git/bin底下)的位置(出现这种原因往往是因为之前安装过git了.安装git时又没有选择默认路径)
      • 找不到boot2docker.iso文件:将 Docker的目录Docker Toolbox下的boot2docker.iso复制到C:Users用户的名字.dockermachinecache
      • 显示boot2docker文件太老,新的又下载不下来:打开https://github.com/boot2docker/boot2docker/releases地址,下载最新版本,将最新的iso文件复制到C:Users用户的名字.dockermachinecache目录
      • virtual box 启动不了:virtual box太老了卸载,去官网https://www.virtualbox.org/wiki/Downloads下载最新版本,重新安装
  • 相关阅读:
    Redis五种数据类型操作命令
    MySQL单表数据量过千万,采坑优化记录,完美解决方案
    并行的执行效率一定高于串行吗?(多线程的执行效率一定高于单线程吗?)
    Swagger2安装及使用
    MySQL单表多次查询和多表联合查询,哪个效率高?
    Java集合时间复杂度
    JAVA中常见集合的扩容
    ant design vue 之 rowKey浏览器报警告
    ant design vue中表格自带分页如何使用
    ant design vue 中表格的使用中,表格选中之后没有状态
  • 原文地址:https://www.cnblogs.com/My-Sun-Shine/p/13547145.html
Copyright © 2011-2022 走看看