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

dockerfile note

时间:2018-04-08 18:04:19      阅读:149      评论:0      收藏:0      [点我收藏+]

标签:ges   oca   .com   nts   engine   tom   man   cas   upper   

dockerfile reference

  1. defination
    docker can build images automatically by reading the instructions from a dockerfile. dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image.

  2. usage
    the docker build command builds an image from a dockerfile and context. the build‘s context is the set of files at a specified location PATH or URL. warning: don‘t use PATH /, because it can transfer the entire contents of your hard drive to the docker daemon.
    docker build -f /home/vickey/dockerfile .

  3. format

    a. not case-sensitive but convention is UPPERCASE

dockerfile note

标签:ges   oca   .com   nts   engine   tom   man   cas   upper   

原文地址:https://www.cnblogs.com/vickey-wu/p/8745953.html

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