fix update: /dockerfile/build_image.md & basic_structure.md

pull/25/head
Summit Suen 2014-11-18 17:53:10 +08:00
parent 484340326b
commit f6542a2fcb
1 changed files with 3 additions and 3 deletions

View File

@ -25,11 +25,11 @@ RUN echo "\ndaemon off;" >> /etc/nginx/nginx.conf
CMD /usr/sbin/nginx
```
其中,一開始必須指明所基於的鏡像名稱,接下來建議說明維護者資訊
其中,一開始必須指明作為基底的鏡像名稱,接下來說明維護者資訊(建議)
後面則是鏡像操作指令,例如 `RUN` 指令,`RUN` 指令將對鏡像執行伴隨的命令。每運行一條 `RUN` 指令,鏡像添加新的一層,並提交。
後面則是鏡像操作指令,例如 `RUN` 指令,`RUN` 指令將對鏡像執行相對應的命令。每運行一條 `RUN` 指令,鏡像添加新的一層,並提交。
最後是 `CMD` 指令,來指定行容器時的操作命令。
最後是 `CMD` 指令,來指定行容器時的操作命令。
下面來看一個更複雜的例子
```