Error response from daemon|Docker构建镜像报错

Error response from daemon: No build stage in current context.

在Dockerfile第一行添加基础镜像,如:

FROM  centos:latest

或者

FROM  java:latest