DOCKER windows 7 详细安装教程
2015-03-27 00:00
671 查看
摘要: docker
6.1 下载地址
6.2 用FTP工具上传tar包
6.3 安装
6.4 查看镜像
6.5 运行
1.下载程序包
2. 设置环境变量
3. 启动DOCKERT
4. 分析start.sh
5. 利用SSH工具管理
6. 下载镜像
windows必须是64位的
下载最新版本的:docker-install.exe即可。
该安装包安装完成后,系统上会多出三个软件:
Oracle VM VirtualBox
Git
Boot2Docker for Windows
以上三个默认安装即可。
![](http://static.oschina.net/uploads/img/201503/27151257_zLXv.jpg)
在命令窗口中,输入ls 如果能找到命令说明环境添加正确。
![](http://static.oschina.net/uploads/img/201503/27151257_7wI9.jpg)
输入sh:
然后输入start.sh,等待启动
![](http://static.oschina.net/uploads/img/201503/27151257_WotN.jpg)
第一次启动中,如果有新版本会更新,时间比较长。
如果第二次启动,就非常快了。
从内容上看主要是执行,如下语句
所有在命令行下执行 sh start.sh 即可
在命令行下用boot2docker ip 可以查询到IP
![](http://static.oschina.net/uploads/img/201503/27151257_Pf2j.jpg)
![](http://static.oschina.net/uploads/img/201503/27151258_YDeQ.jpg)
默认的用户名和密码是: docker/ctuser
![](http://static.oschina.net/uploads/img/201503/27151258_ewPS.jpg)
登录后的界面:
![](http://static.oschina.net/uploads/img/201503/27151258_kXze.jpg)
选择下载 ubuntu-14.04-x86_64.tar.gz
![](http://static.oschina.net/uploads/img/201503/27151258_mm6S.jpg)
![](http://static.oschina.net/uploads/img/201503/27151258_Om1D.jpg)
速度非常快,大概10几秒就完成了。
![](http://static.oschina.net/uploads/img/201503/27151258_bfxa.jpg)
![](http://static.oschina.net/uploads/img/201503/27151258_gbpA.jpg)
可以开始DOCKER旅行了。
DOCKER windows安装
DOCKER windows安装6.1 下载地址
6.2 用FTP工具上传tar包
6.3 安装
6.4 查看镜像
6.5 运行
1.下载程序包
2. 设置环境变量
3. 启动DOCKERT
4. 分析start.sh
5. 利用SSH工具管理
6. 下载镜像
windows必须是64位的
1.下载程序包
安装包 https://github.com/boot2docker/windows-installer/releases下载最新版本的:docker-install.exe即可。
该安装包安装完成后,系统上会多出三个软件:
Oracle VM VirtualBox
Git
Boot2Docker for Windows
以上三个默认安装即可。
2. 设置环境变量
![](http://static.oschina.net/uploads/img/201503/27151257_zLXv.jpg)
在命令窗口中,输入ls 如果能找到命令说明环境添加正确。
3. 启动DOCKERT
在命令窗口中,切到docker的安装目录下![](http://static.oschina.net/uploads/img/201503/27151257_7wI9.jpg)
输入sh:
然后输入start.sh,等待启动
![](http://static.oschina.net/uploads/img/201503/27151257_WotN.jpg)
第一次启动中,如果有新版本会更新,时间比较长。
如果第二次启动,就非常快了。
4. 分析start.sh
#!/bin/bashset -e# clear the MSYS MOTDclearcd "$(dirname "$BASH_SOURCE")"ISO="$HOME/.boot2docker/boot2docker.iso"if [ ! -e "$ISO" ]; then echo 'copying initial boot2docker.iso (run "boot2docker.exe download" to update)' mkdir -p "$(dirname "$ISO")" cp ./boot2docker.iso "$ISO"fiecho 'initializing...'./boot2docker.exe initechoecho 'starting...'./boot2docker.exe startecho./boot2docker.exe ipecho 'connecting...'./boot2docker.exe sshechoechoecho '[Press any key to exit]'read
从内容上看主要是执行,如下语句
boot2docker.exe init boot2docker.exe start boot2docker.exe ssh
所有在命令行下执行 sh start.sh 即可
5. 利用SSH工具管理
在windows命令行进入docker后,不能复制,而且操作也不方便,因此用支持SSH的工具来管理是很好的,比如SECURECRT, PUTTY等,推荐用SECURECRT.在命令行下用boot2docker ip 可以查询到IP
![](http://static.oschina.net/uploads/img/201503/27151257_Pf2j.jpg)
![](http://static.oschina.net/uploads/img/201503/27151258_YDeQ.jpg)
默认的用户名和密码是: docker/ctuser
![](http://static.oschina.net/uploads/img/201503/27151258_ewPS.jpg)
登录后的界面:
![](http://static.oschina.net/uploads/img/201503/27151258_kXze.jpg)
6. 下载镜像
6.1 下载地址
http://download.openvz.org/template/precreated选择下载 ubuntu-14.04-x86_64.tar.gz
6.2 用FTP工具上传tar包
推荐使用:FileZilla![](http://static.oschina.net/uploads/img/201503/27151258_mm6S.jpg)
![](http://static.oschina.net/uploads/img/201503/27151258_Om1D.jpg)
6.3 安装
命令:cat ubuntu-14.04-x86_64.tar.gz |docker import - ubuntu:ubuntu14速度非常快,大概10几秒就完成了。
6.4 查看镜像
查看: docker images![](http://static.oschina.net/uploads/img/201503/27151258_bfxa.jpg)
6.5 运行
运行:docker run -i -t ubuntu:ubuntu14 /bin/bash![](http://static.oschina.net/uploads/img/201503/27151258_gbpA.jpg)
可以开始DOCKER旅行了。
相关文章推荐
- DOCKER windows 7 详细安装教程
- DOCKER windows 7 详细安装教程
- DOCKER windows 7 详细安装教程
- DOCKER windows 7 详细安装教程
- DOCKER windows 7 详细安装教程
- DOCKER windows 7 详细安装教程
- Windows 7安装教程(详细图解)——思齐博客
- windows安装Wamp(Apache,MySQL,PHP)详细教程
- 在 Windows 下安装 WAMP(Apache、MySQL、PHP)详细图文教程
- windows安装To 4000 rtoiseGit详细使用教程【基础篇】
- 最详细在Windows安装Xamarin.iOS教程
- 在Windows 8上禁用UEFI安装Linux详细教程
- Win7 光盘安装详细图文教程 教你安装windows 7系统
- Redis详细完整教程-windows下的安装、测试(php+redis+mysql)
- 最详细在Windows安装Xamarin.iOS教程
- windows安装TortoiseGit详细使用教程【基础篇】
- 在 Windows 下安装 WAMP(Apache、MySQL、PHP)详细图文教程
- Redis详细完整教程-windows下的安装、测试(php+redis+mysql)
- 在 Windows 下安装 WAMP(Apache、MySQL、PHP)详细图文教程
- 虚拟机VMWare安装Windows 8超详细图文教程 – 全程截图+讲解