Why docker doesn't create temporary images anymore, even if one layer gives an error?

Issue type: General

OS Version/build: Mojave 10.14.6

App version: Docker version 20.10.6, build 370c289

Steps to reproduce:

Hey guys.

Once I built successfully an image, it becomes accessible with docker image list as for example:

$ docker image list
REPOSITORY             TAG       IMAGE ID       CREATED        SIZE
example_image   latest    7387f9e17280   19 hours ago   1.75GB

but when I get an error in image building during certain layer/step, why that “incorrect” image is not created and accessible with docker image list, however I am sure it used to be?

I remember that an image was created anyway and included all layers until that incorrect one, however using current version on Mac it doesn’t (I had these temporary images using Linux)

Could you please help and provide some informations? I can’t really find anything. Is it related with buildx plugin ?