开发者社区> 问答> 正文

win7、win8 系统怎么安装Windows Docker啊?

已解决

win7、win8 系统怎么安装Windows Docker啊?

展开
收起
格格的阿里云 2022-04-03 09:46:27 1203 0
1 条回答
写回答
取消 提交回答
  • 推荐回答

    win7、win8 不像win10一样可以使用desktop Docker,而是使用 docker toolbox方法,国内可以使用阿里云的镜像来下载,下载地址:http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/

    安装比较简单,双击运行,点下一步即可,可以勾选自己需要的组件:
    image.png
    docker toolbox 是一个工具集,它主要包含以下一些内容:

    Docker CLI - 客户端,用来运行 docker 引擎创建镜像和容器。
    Docker Machine - 可以让你在 Windows 的命令行中运行 docker 引擎命令。
    Docker Compose - 用来运行 docker-compose 命令。 Kitematic - 这是 Docker 的 GUI 版本。 Docker QuickStart shell - 这是一个已经配置好Docker的命令行环境。 Oracle VM Virtualbox - 虚拟机。
    下载完成之后直接点击安装,安装成功后,桌边会出现三个图标,如下图所示:
    image.png
    点击 Docker QuickStart 图标来启动 Docker Toolbox 终端。

    如果系统显示 User Account Control 窗口来运行 VirtualBox 修改你的电脑,选择 Yes。

    image.png
    $符号那你可以输入以下命令来执行。

     
    $ docker run hello-world
     Unable to find image 'hello-world:latest' locally
     Pulling repository hello-world
     91c95931e552: Download complete
     a8219747be10: Download complete
     Status: Downloaded newer image for hello-world:latest
     Hello from Docker.
     This message shows that your installation appears to be working correctly.
    
     To generate this message, Docker took the following steps:
      1. The Docker Engine CLI client contacted the Docker Engine daemon.
      2. The Docker Engine daemon pulled the "hello-world" image from the Docker Hub.
         (Assuming it was not already locally available.)
      3. The Docker Engine daemon created a new container from that image which runs the
         executable that produces the output you are currently reading.
      4. The Docker Engine daemon streamed that output to the Docker Engine CLI client, which sent it
         to your terminal.
    
     To try something more ambitious, you can run an Ubuntu container with:
      $ docker run -it ubuntu bash
    
     For more examples and ideas, visit:
      https://docs.docker.com/userguide/
    
    2022-04-03 10:53:12
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
5日docker训练营(一).ppt 立即下载
TAKING WINDOWS 10 KERNEL 立即下载
ECS运维指南之Windows系统诊断 立即下载