# 升级数据容器时的权限问题

**URL:** <https://meta.discourse.org/t/permissions-trouble-upgrading-data-container/327794>\
**Category:** Bug\
**Tags:** dev-ops, fixed\
**Created:** [2024年九月23日 17:30 UTC](https://meta.discourse.org/t/permissions-trouble-upgrading-data-container/327794 "2024-09-23T17:30:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [2024年十月1日 00:31 UTC](https://meta.discourse.org/t/permissions-trouble-upgrading-data-container/327794/4 "2024-10-01T00:31:10Z")

</div>

> [@pfaffman](#):
>
> 大概是因为 postgres 用户和组在当前基础操作系统中的 ID 发生了变化。

我不确定 2 年前的用户和组 ID 是什么，但今后 [不会再改变](https://github.com/discourse/discourse_docker/blob/20e33fbfd98d3b8d9c57f7a111beff8aa51a5b98/image/base/Dockerfile#L15-L22)，并且会得到修复。

---

_[View the full topic](https://meta.discourse.org/t/permissions-trouble-upgrading-data-container/327794)._
