
win7、win8 等需要利用 docker toolBox 来安装,国内可以使用阿里云的镜像来下载,下载地址:http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/
我下载的是DockerToolBox-18.03.0-ce.exe。
docker toolBox 是一个工具集,它主要包含以下一些内容:
Docker Cli 客户端,用来运行docker引擎创建镜像和容器
Docker Machine. 可以让你在windows的命令行中运行docker引擎命令
Docker Compose. 用来运行docker-compose命令
Kitematic. 这是Docker的GUI版本
Docker QuickStart shell. 这是一个已经配置好Docker的命令行环境
Oracle VM VirtualBox. 虚拟机
下载完成之后直接点击安装,安装成功后,桌边会出现三个图标,入下图所示:
鉴于国内网络问题,后续拉取 Docker 镜像十分缓慢,可以需要配置加速来解决
%programdata%dockerconfigdaemon.Json(windows) 来配置 Daemon。
请在该配置文件中加入(没有该文件的话,请先建一个):
下载、运行ubuntu镜像{ “registry-mirrors”: [“http://registry.docker-cn.com”] }
点击 Docker QuickStart 图标来启动 Docker ToolBox 终端。
如果系统显示 User Account Control 窗口来运行 VirtualBox 修改你的电脑,选择 Yes。
你可以输入以下命令来执行:
$ 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:
@H_419_56@The Docker Engine Cli clIEnt contacted the Docker Engine daemon.@H_419_56@The Docker Engine daemon pulled the “hello-world” image from the Docker Hub.
(Assuming it was not already locally available.)@H_419_56@The Docker Engine daemon created a new container from that image which runs the
executable that produces the output you are currently reading.@H_419_56@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 bashFor more examples and IDeas, visit:
https://docs.docker.com/userguide/
至此,通过docker已经搭建起linux开发环境,是不是简单得出乎想象!!!
总结以上是内存溢出为你收集整理的在windows7上使用docker搭建linux开发环境(ubuntu)全部内容,希望文章能够帮你解决在windows7上使用docker搭建linux开发环境(ubuntu)所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)