本文共 1241 字,大约阅读时间需要 4 分钟。
A Docker Container is an environment that contains an application, or multiple applications, and all the libraries, other applications and tooling they need to run.
Docker容器是一个环境,其中包含一个或多个应用程序,以及它们需要运行的所有库,其他应用程序和工具。
The application is encapsulated with its dependencies in a container.
该应用程序及其相关性封装在容器中。
You can take a and create a container from it on a newly bought machine with Docker installed, and your application will work without additional work or dependencies.
您可以在安装了的新购买的计算机上获取并从中创建一个容器,您的应用程序可以正常工作,而无需进行其他工作或依赖。
Containers are fully isolated from the computer they run on, called host machine, and you have ways to let them communicate with it, and share resources.
容器与运行它们的计算机(称为主机)完全隔离,您可以通过各种方法使容器与其通信并共享资源。
The goal is not to completely isolate an environment, like it would happen with a virtual machine, but instead the goal is to make an application as portable as possible.
目标不是像虚拟机那样完全隔离环境,而是目标是使应用程序尽可能地可移植。
Applications running in a Docker container are very fast, and you can run many containers at once.
在Docker容器中运行的应用程序非常快,您可以一次运行多个容器。
When talking about Docker Images, I mentioned Docker Images are built. Docker Containers are run, using docker run
.
在谈论Docker镜像时,我提到了Docker镜像是内置的。 使用docker run
Docker容器 。
翻译自:
转载地址:http://vxmgb.baihongyu.com/