# restart-policy 的持久化配置

**URL:** <https://meta.discourse.org/t/persistent-configuration-of-restart-policy/213715>\
**Category:** Self-hosting\
**Created:** [2022 年1 月 3 日 13:32 UTC](https://meta.discourse.org/t/persistent-configuration-of-restart-policy/213715 "2022-01-03T13:32:19Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

作者： ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
发布日期： [2022 年1 月 3 日 20:47 UTC](https://meta.discourse.org/t/persistent-configuration-of-restart-policy/213715/4 "2022-01-03T20:47:24Z")

</div>

我唯一遇到过启动后重启问题的时机是，当我从 `app.yml` 切换到 `web_only.yml` 时，忘记销毁 `app` 容器。我经常进行 docker 升级和重启，而不会出现自动启动问题。供参考，在过去 5 年里我没有看到其他人对此感到担忧。除非你有什么我不知道的情况，否则也许不用担心？

---

_[View the full topic](https://meta.discourse.org/t/persistent-configuration-of-restart-policy/213715)._
