Closed KevinBurton closed 6 years ago
@KevinBurton - When a multi-stage Dockerfile is built, each stage produces an image that is not tagged (e.g. <none>
). This image is what has a dependency on microsoft/aspnetcore-build
. If you remove the <none>
first, you will then be able to remove microsoft/aspnetcore-build
. The following docker issue describes this in a little more detail - https://github.com/moby/moby/issues/34151.
In summary this is the designed behavior of Docker and is not something specific to microsoft/aspnetcore-build.
Closing. As @MichaelSimons said, this is the designed behavior of Docker.
Steps to reproduce the issue
I have a Dockerfile like:
This gives me the following:
I shouldn't need the "build" image so I issue the command
docker rmi 61
Expected behavior
Remove the image.
Actual behavior
Error response from daemon: conflict: unable to delete 6105426f13e9 (cannot be forced) - image has dependent child images
In addition I am not sure why the intermediate image \<none>:\<none> is there.
Output of
dotnet --info
Output of
docker info