How to add a comment in a Dockerfile
You can try using # and it will treat the whole line as a comment in your docker file. For example: # Everything on this line is a commentNote: Format. Docker treats lines that begin with # as a comment unless the line is a valid parser directive. A # marker anywhere else in a line is treated as an argument.
Answered Apr 24, 2021 · 1.5K Views Read answer →