亚洲va中文字幕无码毛片,亚洲成a人片77777kkkk,五十路丰满中年熟女中出,无码人妻精品一区二区,天堂在线中文

幫助與文檔

當前位置: 主頁 > 系統(tǒng)相關 > 正文

Windows Docker安裝

時間:2024/5/2 21:46:14   來源:米安網絡   作者:云主機配置專家   點擊:254次
win7、win8 系統(tǒng)

win7、win8 等需要利用 docker toolbox 來安裝,國內可以使用阿里云的鏡像來下載,

下載地址:http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/

安裝比較簡單,雙擊運行,點下一步即可,可以勾選自己需要的組件:

docker toolbox 是一個工具集,它主要包含以下一些內容:

Docker CLI - 客戶端,用來運行 docker 引擎創(chuàng)建鏡像和容器。

Docker Machine - 可以讓你在 Windows 的命令行中運行 docker 引擎命令。

Docker Compose - 用來運行 docker-compose 命令。

Kitematic - 這是 Docker 的 GUI 版本。

Docker QuickStart shell - 這是一個已經配置好Docker的命令行環(huán)境。

Oracle VM Virtualbox - 虛擬機。

下載完成之后直接點擊安裝,安裝成功后,桌邊會出現(xiàn)三個圖標,入下圖所示:

點擊 Docker QuickStart 圖標來啟動 Docker Toolbox 終端。

如果系統(tǒng)顯示 User Account Control 窗口來運行 VirtualBox 修改你的電腦,選擇 Yes。

$符號那你可以輸入以下命令來執(zhí)行。

$ 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:

1. The Docker Engine CLI client contacted the Docker Engine daemon.

2. The Docker Engine daemon pulled the "hello-world" image from the Docker Hub.

(Assuming it was not already locally available.)

3. The Docker Engine daemon created a new container from that image which runs the

executable that produces the output you are currently reading.

4. 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 bash



For more examples and ideas, visit:

https://docs.docker.com/userguide/

Win10 系統(tǒng)

現(xiàn)在 Docker 有專門的 Win10 專業(yè)版系統(tǒng)的安裝包,需要開啟 Hyper-V。

開啟 Hyper-V

程序和功能

啟用或關閉Windows功能

選中Hyper-V

1、安裝 Toolbox

最新版 Toolbox下載地址: 訪問https://www.docker.com/get-started,注冊一個賬號,然后登錄。

點擊Get started with Docker Desktop,并下載 Windows 的版本,如果你還沒有登錄,會要求注冊登錄:

2、運行安裝文件

雙擊下載的 Docker for Windows Installer 安裝文件,一路 Next,點擊 Finish 完成安裝。

安裝完成后,Docker 會自動啟動。通知欄上會出現(xiàn)個小鯨魚的圖標,這表示 Docker 正在運行。

桌邊也會出現(xiàn)三個圖標,入下圖所示:

我們可以在命令行執(zhí)行 docker version 來查看版本號,docker run hello-world 來載入測試鏡像測試。

如果沒啟動,你可以在 Windows 搜索 Docker 來啟動:

啟動后,也可以在通知欄上看到小鯨魚圖標:

鏡像加速

Windows 10

對于使用 Windows 10 的系統(tǒng),在系統(tǒng)右下角托盤 Docker 圖標內右鍵菜單選擇 Settings,打開配置窗口后左側導航菜單選擇 Daemon。在 Registrymirrors 一欄中填寫加速器地址https://registry.docker-cn.com,之后點擊 Apply 保存后 Docker 就會重啟并應用配置的鏡像地址了。

版權保護: 本文「Windows Docker安裝」由 云主機配置專家 原創(chuàng),轉載請保留鏈接: http://www.iqcg.cn/docs/system/1415.html

聯(lián)系客服

0312-5535754

微信公眾號