mirror of https://github.com/docker/docs.git
#2209 - add the example @tianon gave to elaborate on the Comment documentation
This commit is contained in:
parent
2d425af1b1
commit
7250f94874
|
@ -54,8 +54,14 @@ Docker evaluates the instructions in a Dockerfile in order. **The
|
||||||
first instruction must be `FROM`** in order to specify the
|
first instruction must be `FROM`** in order to specify the
|
||||||
:ref:`base_image_def` from which you are building.
|
:ref:`base_image_def` from which you are building.
|
||||||
|
|
||||||
Docker will ignore **comment lines** *beginning* with ``#``. A comment
|
Docker will treat lines that *begin* with ``#`` as a comment. A ``#``
|
||||||
marker anywhere in the rest of the line will be treated as an argument.
|
marker anywhere else in the line will be treated as an argument. This
|
||||||
|
allows statements like:
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
# Comment
|
||||||
|
RUN echo 'we are running some # of cool things'
|
||||||
|
|
||||||
3. Instructions
|
3. Instructions
|
||||||
===============
|
===============
|
||||||
|
|
Loading…
Reference in New Issue