天蓬老师2017-04-24 16:02:31
You should think about it the other way around. Docker’s official design philosophy, including docker’s, recommends avoiding large single layers, so you need to find ways to make your layers smaller. Otherwise, docker pull will be very difficult in the future
phpcn_u15822017-04-24 16:02:31
Or you use docker commit
这种黑箱镜像操作方式,或者你没有遵循 Dockerfile
best practices.
If it’s the former, it’s recommended to learn Dockerfile
的官方文档: https://docs.docker.com/engin... ,然后使用 Dockerfile
Customize the image.
If the latter is the case, it is recommended to learn the official tips on Dockerfile
最佳实践的文章: https://docs.docker.com/engin...
,里面提到了很多写 Dockerfile
, including how to avoid unnecessary increase in storage layer volume.