Day 6 不免俗的来个 Hello World Docker

Docker 官方制作了一个有趣的 Hello-world docker 映像档,现在就来拉取下来跑起来,顺便复习一下语法并看看内容吧。

步骤

  1. 执行 docker pull hello-world
  2. 完成後,执行 docker run hello-world
  3. 接着会在命令列中,看到以下的字样:
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/

这个 hello-world docker 映像档内,简单介绍方才你的一系列 docker 指令,其在背後做的事情:

  1. Docker 客户端连到 docker 执行程序
  2. Docker 执行程序 从 docker-hub 拉取 "hello-world" 映像档
  3. Docker 由这个 "hello-world" 映像档产生一个容器,并产出上述文字
  4. Docker 将容器生出的文字输出到客户端的命令列上

这由官方所提供的映像档,其评价相当不错呢!或许这是个官方所提供的程序工具彩蛋~


<<:  Day 6— 自动化回信机(3) 寄出信件功能

>>:  [Lesson6] Fragment

Windows event 59 sidebyside invalid

工作上遇到了些问题纪录一下 因作业关系,修改了服务中的设定档 服务启动发生错误: 错误14001 使...

Day17边框(CSS)

Border 边框样式 今天来介绍个基本的边框 <p class="solid &q...

Day15 Sideproject(作品集) from 0 to 1 -刻画面

昨天把整个专案架起来了 今天我们就可以开始来刻画面了 这边也要提一下之前我们其实是直接开写 先从会员...

[Day 6] Button

Day 5 进到了网站中最常见需要做功能性的环节 Button <Button variant...

Day 14 实作 database migration

前言 昨天讲完了 manage.py 跟我们新加入的几个自订指令,今天我们还是离不开 manage....