官术网_书友最值得收藏!

Docker containers

In simple terms, Docker containers provide an isolated and secure environment for the application components to run. The isolation and security allows one or many containers to run simultaneously on a given host. Often, for simplicity's sake, Docker containers are loosely termed as lightweight-VMs (Virtual Machine). However, they are very different from traditional VMs. Docker containers do not need hypervisors to run like virtual machines, and thus, multiple containers can be run on a given hardware combination.

Virtual machines include the application, the necessary binaries and libraries, and an entire guest operating system, all of which can amount to tens of GBs. On the other hand, Docker containers include the application and all of its dependencies, but share the kernel with other containers, running as isolated processes in the user space on the host operating system. Docker containers are not tied to any specific infrastructure: they run on any computer, on any infrastructure, and in any cloud. This very aspect makes them look like a real-world container. The following diagram sums it all up:

Figure 1.18: Difference between traditional VMs and Docker containers

Listed next are some of the key building blocks of the Docker technology:

  • Docker Container: An isolated and secured environment for applications to run.
  • Docker engine: A client-server application having the following components:
    • Daemon process used to create and manage Docker objects, such as images, containers, networks, and data volumes.
    • A REST API interface
    • A command-line interface (CLI) client
  • Docker client: A client program that invokes the Docker engine using APIs.
  • Docker host: The underlying operating system sharing kernel space with the Docker containers. Until recently, the Windows OS needed Linux virtualization to host Docker containers.
  • Docker hub: The public repository used to manage Docker images posted by various users. Images made public are available for all to download in order to create containers using those images.
主站蜘蛛池模板: 响水县| 大田县| 枣阳市| 凤山市| 东乡| 噶尔县| 钟山县| 泗水县| 应用必备| 石屏县| 株洲市| 淳安县| 清涧县| 东源县| 大安市| 昌都县| 南溪县| 南靖县| 梅州市| 绥芬河市| 贡觉县| 泾源县| 通州市| 什邡市| 临潭县| 安图县| 桐乡市| 西乌珠穆沁旗| 贵德县| 大同市| 绍兴市| 霸州市| 德清县| 合江县| 济宁市| 武陟县| 广东省| 安阳市| 长泰县| 大名县| 黎城县|