k8s学习笔记

K8S学习笔记

Docker hello world 启动信息步骤

安装了docker后执行官方自带的hello-world镜像后,其执行步骤分析

~% docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
0e03bdcc26d7: Pulling fs layer
latest: Pulling from library/hello-world
0e03bdcc26d7: Pull complete
Digest: sha256:31b9c7d48790f0d8c50ab433d9c3b7e17666d6993084c002c2ff1ca09b96391d
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:
 #第一步,docker 客户端联系了docker守护进程
 1. The Docker client contacted the Docker daemon.
 #第二步,docker 守护进程将 hello-world镜像从dockerhub上拉取下来
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 #第三步,docker守护进程使读取的镜像创建了一个新的容器,容器运行镜像的可执行文件
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 #第四步, Docker守护进程将输出流式传输到Docker客户端,后者将其发送到您的终端。
 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/
上一篇:docker daemon 端口冲Failed to start Docker Application Container Engine. -- Subject: Unit docker.servic


下一篇:linux离线状态下安装Docker Centos7 内网 无外网