# 为 Docker 容器添加标签

**URL:** https://meta.discourse.org/t/add-a-label-to-the-docker-container/230254
**Category:** Sysadmins
**Tags:** docker, how-to
**Created:** [2022年六月17日 06:40 UTC](https://meta.discourse.org/t/add-a-label-to-the-docker-container/230254 "2022-06-17T06:40:05Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2022年六月17日 12:59 UTC](https://meta.discourse.org/t/add-a-label-to-the-docker-container/230254/2 "2022-06-17T12:59:13Z")

</div>

为了使其处理更具持久性，您可以按照此 traefik 示例中的说明将 docker args 添加到 app.yml 文件中

> [@Discourse with Traefik 2.0](https://meta.discourse.org/t/discourse-with-traefik-2-0/130357/2?u=itsbhanusharma):
>
> After some trying I could solve it by my own. For further notice I attach my app.yml: ... templates: - "templates/postgres.template.yml" - "templates/redis.template.yml" - "templates/web.template.yml" - "templates/web.ratelimited.template.yml" ## Uncomment these two lines if you wish to add Lets Encrypt (https) #- "templates/web.ssl.template.yml" #- "templates/web.letsencrypt.ssl.template.yml" #- "templates/web.socketed.template.yml" ## which TCP/IP ports should this container…

---

_[View the full topic](https://meta.discourse.org/t/add-a-label-to-the-docker-container/230254)._
