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

看官方文档Format

以 '#' 开头一行被视为评论,出现在其他位置视为参数。

也就不难理解报错原因:将写在同一行的注释视为参数了。

原Dockerfile:

 改为:

 

posted @ 2019-10-04 10:46  Rogn  阅读(9309)  评论(0编辑  收藏  举报