這是我參與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等第三方軟件。