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

  • Deployment with Docker
  • Srdjan Grubor
  • 305字
  • 2021-07-02 23:22:09

Introduction to Docker containers

Docker containers, in essence, are a grouping of a number of filesystem layers that are stacked on top of each other in a sequence to create the final layout that is then run in an isolated environment by the host machine's kernel. Each layer describes which files have been added, modified, and/or deleted relative to its previous parent layer. For example, you have a base layer with a file /foo/bar, and the next layer adds a file /foo/baz. When the container starts, it will combine the layers in order and the resulting container will have both /foo/bar and /foo/baz. This process is repeated for any new layer to end up with a fully composed filesystem to run the specified service or services.

Think of the arrangement of the filesystem layers in an image as the intricate layering of sounds in a symphony: you have the percussion instruments in the back to provide the base for the sound, wind instruments a bit closer to drive the movements, and in the front, the string instruments with the lead melody. Together, it creates a pleasing end result. In the case of Docker, you generally have the base layers set up the main OS layers and configuration, the service infrastructure layers go on top of that (interpreter installation, the compilation of helpers, and so on), and the final image that you run is finally topped with the actual service code. For now, this is all you will need to know, but we will cover this topic in much more detail in the next chapter.

In essence, Docker in its current form is a platform that allows easy and fast development of isolated (or not depending on how the service is configured) Linux and Windows services within containers that are scalable, easily interchangeable, and easily distributable.

主站蜘蛛池模板: 保靖县| 江陵县| 个旧市| 溧阳市| 扎赉特旗| 蒲江县| 彭阳县| 安阳市| 仙桃市| 芮城县| 汝阳县| 萨迦县| 诸暨市| 阜城县| 张家界市| 湖州市| 纳雍县| 上虞市| 万全县| 亚东县| 呈贡县| 沁水县| 游戏| 南木林县| 岳西县| 和林格尔县| 扎兰屯市| 哈巴河县| 营山县| 吴旗县| 伊金霍洛旗| 临江市| 明星| 屯留县| 徐州市| 青龙| 青岛市| 定结县| 凯里市| 三门峡市| 彝良县|