From 7250f9487463ae50d73865a4d02caec611e613ad Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Tue, 15 Oct 2013 22:19:07 +1000 Subject: [PATCH] #2209 - add the example @tianon gave to elaborate on the Comment documentation --- docs/sources/use/builder.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/sources/use/builder.rst b/docs/sources/use/builder.rst index fedae17389..60f5d50a65 100644 --- a/docs/sources/use/builder.rst +++ b/docs/sources/use/builder.rst @@ -54,8 +54,14 @@ Docker evaluates the instructions in a Dockerfile in order. **The first instruction must be `FROM`** in order to specify the :ref:`base_image_def` from which you are building. -Docker will ignore **comment lines** *beginning* with ``#``. A comment -marker anywhere in the rest of the line will be treated as an argument. +Docker will treat lines that *begin* with ``#`` as a comment. A ``#`` +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 ===============