您好,登錄后才能下訂單哦!
[root@docker ~]# docker run hello-world
#本地?zé)o法找到hello-world的鏡像
Unable to find image 'hello-world:latest' locally
#從遠(yuǎn)程倉庫拉取hello-world鏡像
latest: Pulling from library/hello-world
1b930d010525: Pull complete
Digest: sha256:4df8ca8a7e309c256d60d7971ea14c27672fc0d10c5f303856d7bc48f8cc17ff
#下載完成了一個(gè)新的鏡像(hello-world)
Status: Downloaded newer image for hello-world:latest
#鏡像容器運(yùn)行內(nèi)容(看到以下內(nèi)容,代表運(yùn)行正常)
Hello from Docker!
This message shows that your installation appears to be working correctly.
#為了產(chǎn)生此信息,容器做了下以下步驟工作:
To generate this message, Docker took the following steps:
#docker的客戶端連接到服務(wù)器的docker服務(wù)端,以守護(hù)進(jìn)程在后臺(tái)啟動(dòng),典型的CS
1. The Docker client contacted the Docker daemon.
#docer服務(wù)端從docker hub遠(yuǎn)程倉庫下載了一個(gè)hello-world的鏡像
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
#docker服務(wù)端通過這個(gè)鏡像啟動(dòng)了一個(gè)新的容器,執(zhí)行了相應(yīng)的命令或程序,輸出了一段信息或內(nèi)容。
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
#docker服務(wù)器把數(shù)據(jù)流輸出到docker客戶端,并發(fā)送到你的終端。
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/
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。