Home  >  Q&A  >  body text

docker私有仓库push时单个层太大怎么办?

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

滿天的星座滿天的星座2758 days ago681

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师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

    reply
    0
  • phpcn_u1582

    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.

    reply
    0
  • Cancelreply