Browse code

Document arg before from

Signed-off-by: Daniel Nephin <dnephin@docker.com>

Daniel Nephin authored on 2017/05/13 07:45:08
Showing 1 changed files
... ...
@@ -530,6 +530,17 @@ FROM extras:${CODE_VERSION}
530 530
 CMD  /code/run-extras
531 531
 ```
532 532
 
533
+To use the default value of an `ARG` declared before the first `FROM` use an
534
+`ARG` instruction without a value:
535
+
536
+```Dockerfile
537
+ARG  SETTINGS=default
538
+
539
+FROM busybox
540
+ARG  SETTINGS
541
+
542
+```
543
+
533 544
 ## RUN
534 545
 
535 546
 RUN has 2 forms: