How to Crop docker Images?

  docker, question

First, I executed docker pull ubuntu to download the official image.
Lnmp (http://lnmp.org/ )
After the installation is completed, the docker commit operation is performed to save the image.
It turns out that the mirror image is too big ~ ~ how to clip it? ?

I don’t understand what your tailoring means.
You can compile and install nginx,mysql and php by yourself, which will not take up much space.
Secondly, docker’s mirror image is self-increasing, ubuntu is 180M, and what you said based on it is only adding some new parts to it.
If you really think that the mirror image is too large, I suggest you check the software of the system to see if you have installed extra software or stored files that should not be stored.