Docker provides a set of standard practices to follow in order to keep your image size. With Docker, you have to be careful about writing your Dockerfile efficiently in order to reduce the image size and also improve the build times.
This flexibility comes with some problems - like high disk usage and large images.