dockerfile note
Posted 吴悟无
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了dockerfile note相关的知识,希望对你有一定的参考价值。
dockerfile reference
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.usage
thedocker 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 .
- format
a. not case-sensitive but convention is UPPERCASE
以上是关于dockerfile note的主要内容,如果未能解决你的问题,请参考以下文章