Understand images & containers

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Understand images & containers相关的知识,希望对你有一定的参考价值。

Learn about(了解) images & containers(docker核心技术)

Docker Engine(引擎,发动机) provides the core Docker technology that enables images and containers(启用镜像和容器). As the last step in your installation, you ran the Engine docker run hello-world command. With this one command, you completed the core tasks to using Engine. The command you ran had three parts.(这个命令包含了3个部分)

    技术分享技术分享

container(集装箱,容器) is a stripped-to-basics version of a Linux operating system. An image is software you load into a container. When you ran the command, the Engine software:(当你运行这个命令时,这个引擎软件:)

  • checked to see if you had the hello-world software image(检查你本地是否有这个软件镜像)

  • downloaded the image from the Docker Hub (more about the hub later)(从Docker中心下载镜像)

  • loaded the image into the container and “ran” it(将镜像载入到容器并运行它)

Depending on how it was built, an image might run a simple, single command and then exit. This is what Hello-World did.(取决于如何构建它,一个镜像可以执行简单的、单一的命令,然后退出,这就是hello-world所做的。)

A Docker image, though, is capable(能干的,能胜任的) of much more. (Docker image然而能干的事更多)An image can start software as complex as a database(如数据库一样复杂), wait for you (or someone else) to add data, store the data for later use, and then wait for the next person.

Who built the hello-world software image though?(然而谁可以构建镜像image?) In this case(在这个事例中), Docker did but anyone can. Docker Engine lets people (or companies) create and share software through Docker images. Using Docker Engine, you don’t have to worry about whether your computer can run the software in a Docker image — a Docker container can always run it.

Where to go next(接下来去哪?)

See, that was quick wasn’t it? Now, you are ready to do some really fun stuff(东西,材料) with Docker.(现在,你可以准备去做一些真正有趣的东西了) Go on to the next part(继续下一部分) to find and run the whalesay image.

原文:https://docs.docker.com/linux/step_two/

本文出自 “Zcy.gy” 博客,请务必保留此出处http://1064187464.blog.51cto.com/9108437/1774400

以上是关于Understand images & containers的主要内容,如果未能解决你的问题,请参考以下文章

Docker初探

understand的安装

Utility3:Understand Dashboard Report

[Python] Understand List Comprehensions in Python

[Python] Understand Mutable vs. Immutable objects in Python

I don’t understand what you mean. 还是 I don’t understand what your means. 哪个对啊