首页 > 其他 > 详细

Images之Dockerfiles

时间:2018-07-05 20:19:27      阅读:189      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!