Docker Community Forums

Share and learn in the Docker community.

Is it possible to remove all intermediate(<none>) images after successfully building docker images

Hi ,
After creating docker image using docker build I found there are 7-8 intermediate images. As per my knowledge intermediate images should be removed after successfully build, but not sure in my why still exists. I tried “–rm” and “–force-rm” option but no luck.

I know that in my case “Copy” command in Dockerfile is creating those images but I think it should be removed automatically.

Please suggest if :slight_smile: anyone already faced this type of problems.
Thanks in advance

Please suggest :frowning: if there is any solution