November 2018
Beginner
230 pages
6h 4m
English
Parser Directives are a special subset of optional comment lines in the Dockerfile. Any parser directives must occur before the first normal comment line. They must also precede any blank lines or other build instructions, including the FROM instruction. Basically, all parser directives must be at the very top of the Dockerfile. By the way, if you haven't figured it out yet, you can create a normal comment line in a Dockerfile by starting that line with a # character. The syntax for a parser directive is as follows:
# directive=value# The line above shows the syntax for a parser directive
So, what can you do with a parser directive? Well right now, the only one supported is escape. The escape parser directive is used to ...
Read now
Unlock full access