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

  • Docker on Windows
  • Elton Stoneman
  • 163字
  • 2021-07-02 19:53:18

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

主站蜘蛛池模板: 鄂托克前旗| 鄂温| 达尔| 乌鲁木齐市| 和平区| 高台县| 邵阳县| 沙洋县| 同江市| 泊头市| 乌兰县| 临沧市| 合山市| 上蔡县| 晋江市| 呼玛县| 顺平县| 南华县| 靖宇县| 瓮安县| 砚山县| 清丰县| 乐安县| 尼勒克县| 金溪县| 平武县| 望都县| 徐汇区| 浮梁县| 迭部县| 连江县| 水富县| 岳阳市| 鲁甸县| 罗甸县| 岑溪市| 繁昌县| 漠河县| 婺源县| 瓦房店市| 多伦县|