Docker使用-Hello World
生活随笔
收集整理的這篇文章主要介紹了
Docker使用-Hello World
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、docker pull hello-world 拉去docker遠程倉庫中的Hello World的鏡像
[root@Carlota2 ~]# docker pull hello-world Using default tag: latest latest: Pulling from library/hello-world 0e03bdcc26d7: Pull complete Digest: sha256:7f0a9f93b4aa3022c3a4c147a449bf11e0941a1fd0bf4a8e6c9408b2600777c5 Status: Downloaded newer image for hello-world:latest2、docker images 查看本地鏡像 確認
[root@Carlota2 ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest bf756fb1ae65 8 months ago 13.3kB3、docker run hello-world 運行Hello World鏡像
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 theexecutable that produces the output you are currently reading.4. The Docker daemon streamed that output to the Docker client, which sent itto your terminal.To try something more ambitious, you can run an Ubuntu container with:$ docker run -it ubuntu bashShare 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/總結
以上是生活随笔為你收集整理的Docker使用-Hello World的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: JDK源码解析之 Java.lang.D
- 下一篇: 代码实现——MapReduce实现Had