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
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.
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
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.