通过DockerFile构建镜像时报错failed to solve with frontend dockerfile.v0: failed to create LLB definition
·
完整报错:failed to solve with frontend dockerfile.v0: failed to create LLB definition: no build stage in current context。
问题及解决方案:在DockerFile中,第一行必须是FROM XXX,否则就会出现上述报错。

如图把FROM内容调整为第一行,重新执行构建命令
docker build -t xxx .
即可构建成功。
更多推荐
所有评论(0)