I have build a docker image by making incremental commits. This has led to the creation of a lot of layers in my docker image and subsequently the size of the image has gone very large.
Is there a way to remove the layers and as a result reduce the size of the image ?
Any help would be appreciated.