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

  • 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.

主站蜘蛛池模板: 自治县| 襄城县| 阿克陶县| 左云县| 阜城县| 景东| 永胜县| 海宁市| 清远市| 霍州市| 凤冈县| 黄山市| 临洮县| 惠安县| 弥勒县| 多伦县| 湖北省| 枣强县| 灌云县| 浦北县| 武邑县| 大洼县| 甘孜县| 龙井市| 德钦县| 乃东县| 阿图什市| 北川| 徐水县| 焉耆| 青浦区| 宁化县| 泗洪县| 建湖县| 河西区| 湘西| 辛集市| 女性| 剑川县| 惠安县| 高雄县|