# Docker 镜像更新：Redis 6 及镜像大小缩小 25%

**URL:** <https://meta.discourse.org/t/docker-image-update-redis-6-and-25-smaller-image-size/171437>\
**Category:** Announcements\
**Tags:** docker\
**Created:** [2020 年11 月 26 日 22:02 UTC](https://meta.discourse.org/t/docker-image-update-redis-6-and-25-smaller-image-size/171437 "2020-11-26T22:02:27Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

作者： ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)\
发布日期： [2021 年7 月 27 日 19:30 UTC](https://meta.discourse.org/t/docker-image-update-redis-6-and-25-smaller-image-size/171437/20 "2021-07-27T19:30:51Z")

</div>

> [@Falco](#):
>
> ……我们最近发现 _压缩后_ 的镜像大小超过了 1GB，这有点太大了。
> 
> 因此……我们将 Discourse 的源代码从镜像内部移到了“浅克隆”中，仅包含最新版本的代码。
> 
> 这一改动使压缩后的镜像大小减少了 25%……同时也有助于控制镜像随时间增长的问题。

这是否仍按预期工作？是否有一个简单的单行命令可以查看压缩后镜像的大小？

---

_[View the full topic](https://meta.discourse.org/t/docker-image-update-redis-6-and-25-smaller-image-size/171437)._
