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

  • Docker on Windows
  • Elton Stoneman
  • 164字
  • 2021-07-02 12:47:55

Building a Docker image

Docker images are layered. The bottom layer is the operating system, which can be a full OS like Windows Server Core, or a minimal OS like Microsoft Nano Server. On top of this are layers for each change you make to the base OS when you build an image, by installing software, copying files, and running commands. Logically, Docker treats the image as a single unit, but physically each layer is stored as a separate file in Docker's cache, so images with a lot of common features can share layers from the cache.

Images are built using a text file with the Dockerfile language – specifying the base OS image to start with and all the steps to add on top. The language is very simple, and there are only a few commands you need to master in order to build production-grade images. I'll start by looking at the basic PowerShell image I've been using so far in this chapter.

主站蜘蛛池模板: 惠州市| 宝山区| 尤溪县| 托克托县| 江安县| 秦安县| 探索| 和林格尔县| 庆安县| 宜阳县| 重庆市| 玛多县| 外汇| 西城区| 连山| 合水县| 永平县| 盐边县| 潜江市| 丹江口市| 武汉市| 衡南县| 周宁县| 和田县| 屯门区| 潞西市| 阆中市| 广饶县| 秀山| 平南县| 嘉定区| 钟祥市| 行唐县| 铜鼓县| 科技| 东海县| 宜宾县| 佛教| 阿鲁科尔沁旗| 大安市| 桐柏县|