win7、win8 系統(tǒng)安裝Docker
下載地址:http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/
docker toolbox 是一個工具集,它主要包含以下一些內(nèi)容:
Docker CLI 客戶端,用來運行docker引擎創(chuàng)建鏡像和容器 Docker Machine. 可以讓你在windows的命令行中運行docker引擎命令 Docker Compose. 用來運行docker-compose命令 Kitematic. 這是Docker的GUI版本 Docker QuickStart shell. 這是一個已經(jīng)配置好Docker的命令行環(huán)境 Oracle VM Virtualbox. 虛擬機
下載完成之后直接點擊安裝,安裝成功后,桌邊會出現(xiàn)三個圖標(biāo),入下圖所示:
點擊 Docker QuickStart 圖標(biāo)來啟動 Docker Toolbox 終端。
如果系統(tǒng)顯示 User Account Control 窗口來運行 VirtualBox 修改你的電腦,選擇 Yes。
第一次打開可能會要下載一些必要的文件, 比較慢, 要耐心等待。
$ 符號那你可以輸入以下命令來執(zhí)行。
$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
1b930d010525: Pull complete
Digest: sha256:c3b4ada4687bbaa170745b3e4dd8ac3f194ca95b2d0518b417fb47e5879d9b5f
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 client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/