无法处理 Dockerfile:无法解析存储库信息:存储库名称组件必须匹配

unable to process Dockerfile: unable to parse repository info: repository name component must match

您好,我正在遵循此博客 post、"Managing containerized ASP.NET Core apps with Kubernetes"

上的指导

https://cloudplatform.googleblog.com/2016/10/managing-containerized-ASP.NET-Core-apps-with-Kubernetes.html

我卡在了 docker 构建映像的阶段

docker build -t gcr.io/xxxx/hello-dotnet:v1 .

这是我遇到的错误。

unable to process Dockerfile: unable to parse repository info: repository name component must match "[a-z0-9](?:-*[a-z0-9])*(?:[._][a-z0-9](?:-*[a-z0-9])*)*"

我的 Dockerfile 的内容是

FROM microsoft/dotnet:1:1.0.1-core
COPY . /app
WORKDIR /app
RUN ["dotnet", "restore"]
RUN ["dotnet", "build"]
EXPOSE 8080/tcp
ENV ASPNETCORE_URLS http://*:8080
ENTRYPOINT ["dotnet", "run"]

你的 Dockerfile 的第一行应该是:

FROM microsoft/dotnet:1.0.1-core