使用:docker build -t myapp 。无法成功获取图像
Use: docker build -t myapp . cannot get image successfully
我的 Docker 文件是:
FROM microsoft/aspnet
COPY . /app
WORKDIR /app
RUN ["dnu", "restore"]
EXPOSE 5004
ENTRYPOINT ["dnx", "project.json", "kestrel"]
我的 Docker 文件有什么问题吗?
以下是回复:
Restore failed
A task was canceled.
NuGet Config files used:
/root/.config/NuGet/NuGet.Config
Feeds used:
https://www.nuget.org/api/v2/
The command 'dnu restore' returned a non-zero code: 1
Docker 文件需要更新如下,然后就可以构建了:
FROM microsoft/aspnet:1.0.0-beta4
ADD . /app
WORKDIR /app
RUN ["dnu", "restore"]
EXPOSE 5004
ENTRYPOINT ["dnx", "./src/HelloMvc6", "kestrel"]
我的 Docker 文件是:
FROM microsoft/aspnet
COPY . /app
WORKDIR /app
RUN ["dnu", "restore"]
EXPOSE 5004
ENTRYPOINT ["dnx", "project.json", "kestrel"]
我的 Docker 文件有什么问题吗?
以下是回复:
Restore failed
A task was canceled.
NuGet Config files used:
/root/.config/NuGet/NuGet.Config
Feeds used:
https://www.nuget.org/api/v2/
The command 'dnu restore' returned a non-zero code: 1
Docker 文件需要更新如下,然后就可以构建了:
FROM microsoft/aspnet:1.0.0-beta4
ADD . /app
WORKDIR /app
RUN ["dnu", "restore"]
EXPOSE 5004
ENTRYPOINT ["dnx", "./src/HelloMvc6", "kestrel"]