I am trying to create a custom docker image using the dockerfile as shown
FROM microsoft/dotnet:0.0.1-alpha-onbuild
RUN mkdir -p /dotnetapp
WORKDIR /dotnetapp
ENTRYPOINT ["dotnet", "run"]
ONBUILD COPY . /dotnetapp
ONBUILD RUN dotnet restore
i get the error Last layer "91f7f9444ee1305921aa584bb4806c40bcece5c618f83ac383e105b23bdb6aad" does not have a base layer reference
I am trying to build the image in windows server 2016 TP5 on Azure
Any help is much apprciated
Thanks
This is a result of not having a manifest defined. When on Windows Server Core and Nano Server, docker will try to pull the Linux images which are invalid on Windows platforms. It seems like docker should have a better story here though - not everyone is going to support all platforms.
docker will try to pull the Linux images which are invalid on Windows platforms.
Maybe it's not the right place to ask, but is this a limitation which is planned to be removed in the final release of Windows Containers?
@timotei, Creating a Docker manifest is what will address this. This contains metadata that docker will read in order to determine which image applies to each platform/architecture. Additionally if docker doesn't find a matching image, it will then display a more friendly error message to the user. We will add a manifest for the microsoft/dotnet images once it is fully flushed out.
This work is being tracked with https://github.com/dotnet/dotnet-docker/issues/99. Closing this issue.
@MichaelSimons I understand that, but my question was more like: will this limitation (running Linux on Windows platforms) be removed in the final release? (after we have all the proper manifests in place)
@timotei, you can run Linux on the Windows platform via Docker for Windows.
@PatrickLang, @friism - Is there any documentation (e.g. blog article) that talks about Docker for Windows vs Windows Containers, what the use cases are for each, how they can be used SxS and what the road maps looks like? I think this would be helpful as there seems to be some confusion between the two.
Work has been done to improve these errors, see details here:
I'd be interested to know if these checks and errors are not working.
... and yes, we're working on installing both with Docker for Windows
Most helpful comment
Work has been done to improve these errors, see details here:
I'd be interested to know if these checks and errors are not working.
... and yes, we're working on installing both with Docker for Windows