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

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.

主站蜘蛛池模板: 商河县| 花垣县| 浮梁县| 雷山县| 郓城县| 兴和县| 文山县| 建宁县| 体育| 互助| 海伦市| 温宿县| 安图县| 桐庐县| 绿春县| 贺兰县| 肥乡县| 武冈市| 佛冈县| 泰兴市| 开封县| 巨野县| 垦利县| 巴林右旗| 巢湖市| 忻城县| 曲松县| 达孜县| 台州市| 台山市| 潼南县| 海口市| 陵水| 阳西县| 恩施市| 平邑县| 教育| 都江堰市| 柯坪县| 德保县| 武平县|