Failed to build: Error parsing reference: “microsoft/dotnet:2.1-runtime AS base” is not a valid repository/tag:

后端 未结 1 639
清歌不尽
清歌不尽 2021-01-16 08:42

I got the below error when build docker for console application using .net core.

Step 1/15 : FROM microsoft/dotnet:2.1-runtime AS base Error parsing

1条回答
  •  别那么骄傲
    2021-01-16 08:53

    Multi-stage builds (which added the FROM ... AS ... syntax along with multiple FROM lines) require 17.05 or newer. You'll need to upgrade your docker server.

    For more details on multi-stage builds, see: https://docs.docker.com/develop/develop-images/multistage-build/

    0 讨论(0)
提交回复
热议问题