I am using itdocker
structureLNMP
Environment, I usedocker
Got itcentos
The mirror image of the, and then in thecentos
Build inLNMP
The environment, I installedmysql
This was followed by another one.commit
When the mirror size is finished282M
, and then I entered againYum install php
After completioncommit
After a while, the mirror size changed to659M
, why is this so, why is the growth so big?
When installing programs through yum, many temporary files will be generated and many unnecessary software packages will be installed as recommended software. The image will naturally become larger.
In addition, it is better not to run all programs in one container, but to build services through container layout.