docker私有仓库push时单个层太大怎么办?
滿天的星座
滿天的星座 2017-04-24 16:00:31
0
2
696

难道只能设置nginx上传文件大小为很大,还有就是很大的超时时间?

滿天的星座
滿天的星座

reply all(2)
Peter_Zhu

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_u1582

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template