Combine parent and child docker image and make one image

combine parent and child docker image and make one image.

I am using ubuntu and make few changes and then commit them.as per every commit new image will gets created and we can’t delete the old image. is there a way where we can combine all the images.