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

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.

主站蜘蛛池模板: 榆社县| 承德县| 康平县| 湖口县| 苏尼特右旗| 库伦旗| 福贡县| 大庆市| 江都市| 成安县| 筠连县| 论坛| 永川市| 西昌市| 绥化市| 锡林郭勒盟| 皋兰县| 天峨县| 阜阳市| 区。| 新建县| 莎车县| 江北区| 遵义县| 南汇区| 鸡东县| 茶陵县| 屯留县| 库尔勒市| 巴南区| 读书| 湖北省| 光山县| 右玉县| 上饶县| 康定县| 宕昌县| 杭锦旗| 安塞县| 康保县| 华蓥市|