这是我参与8月更文挑战的第7天,活动详情查看:8月更文挑战git
在 cmd 里执行 systeminfo
Hyper-V 要求: 虚拟机监视器模式扩展: 是
固件中已启用虚拟化: 否
二级地址转换: 是
数据执行保护可用: 是
复制代码
若是找不到快捷方式 修改属性目标 "G:\Program Files\Git\bin\bash.exe" --login -i "G:\Program Files\Docker Toolbox\start.sh"
docker
1.boxmananger.exe failed to create the vitrualbox objectshell
cmd ---> regedit 找到注册表,修改默认值
①注册表一:
HKEY_CLASSES_ROOT\CLSID{00020420-0000-0000-C000-000000000046}
InprocServer32 修改成C:\Windows\system32\oleaut32.dll
②注册表二:
HKEY_CLASSES_ROOT\CLSID{00020424-0000-0000-C000-000000000046}
InprocServer32 修改成C:\Windows\system32\oleaut32.dll
复制代码
第一次运行Docker Quickstart Terminal的时候,软件会须要进行初始化操做,须要等待片刻windows
你会发现界面上会输出一个IP地址信息,以下图(该图是我本地电脑上的,并不是第一次运行的效果,不过每次启动都会显示IP信息的):浏览器
(default) Waiting for an IP...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: G:\Program Files\Docker Toolbox\docker-machine.exe env default
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/
docker is configured to use the default machine with IP 192.168.99.100
For help getting started, check out the docs at https://docs.docker.com
Start interactive shell
复制代码
简单来讲就是,若是你电脑上安装的是Docker Toolbox用于操做Docker的话,那么当你启动容器以后(好比启动了一个Nginx镜像),bash
要想能使用浏览器访问Nginx服务,则不能使用localhost或者127.0.0.1,必须使用192.168.99.100,
也就是Docker Quickstart Terminal分配给你的IP地址。 新手的话,若是不仔细阅读这段话的意思的话,很容易使用localhost、127.0.0.1来访问你的容器服务,会出现访问超时的错误。
就会误觉得是Docker服务有问题,其实并不是如此,建议新手必定要牢记上面的说明。markdown
Docker Toolbox使用Oracle Virtual Box而不是Hyper-V虚拟化产品。ide
Kitematic 是一个图形化界面的用于操做Docker的应用软件。咱们能够简单快速地搭建咱们的容器而不须要输入命令,oop
能够在图形用户界面中经过简单的点击从而在容器上部署咱们的应用。
Kitematic 集成了 Docker Hub,容许咱们搜索、拉取任何须要的镜像,并在上面部署应用。
它同时也能很好地切换到命令行用户接口模式。post
使用的是 MobaXterm 这个客户端软件,你也可使用XShell等第三方软件。