码迷,mamicode.com
首页 > 其他好文 > 详细

Images之Dockerfiles

时间:2018-07-05 21:27:44      阅读:157      评论:0      收藏:0      [点我收藏+]

标签:man   form   for   ext   code   cti   engine   cal   https   

Best practices for writing Dockerfiles

 

This document covers recommended best practices and methods for building efficient images.

 

Docker builds images automatically by reading the instructions from a Dockerfile -- a text file that contains all commands, in order, needed to build a given image.

A Dockerfile adheres to a specific format and set of instructions which you can find at Dockerfile reference.

 

A Docker image consists of read-only layers each of which represents a Dockerfile instruction. The layers are stacked and each one is a delta of the changes from the previous layer. Consider this Dockerfile:

Images之Dockerfiles

标签:man   form   for   ext   code   cti   engine   cal   https   

原文地址:https://www.cnblogs.com/panpanwelcome/p/9269980.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!