Docker报错“Dockerfile parse error line 1: FROM requires either one or three arguments”

See the official documents the Format :

With '#' at the beginning of a line is considered a comment, it appears as arguments in other locations.

It is not difficult to understand the reasons given: the same line as arguments a comment.

Original Dockerfile:

 Read:

 

Guess you like

Origin www.cnblogs.com/lfri/p/11621619.html