# 尝试在 Portainer 上安装 Discourse，但它未能拉取基础容器

**URL:** <https://meta.discourse.org/t/trying-to-install-discourse-on-portainer-but-its-not-pulling-the-base-container/270983>\
**Category:** Self-hosting\
**Tags:** unsupported-install\
**Created:** [2023 年7 月 8 日 10:58 UTC](https://meta.discourse.org/t/trying-to-install-discourse-on-portainer-but-its-not-pulling-the-base-container/270983 "2023-07-08T10:58:22Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![hcraige](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@hcraige](https://meta.discourse.org/u/hcraige)\
发布日期： [2023 年7 月 8 日 10:58 UTC](https://meta.discourse.org/t/trying-to-install-discourse-on-portainer-but-its-not-pulling-the-base-container/270983/1 "2023-07-08T10:58:22Z")

</div>

尝试在 Portainer 中安装 Discourse，但它没有拉取基础容器。

编辑：我想在 Portainer 上部署基础 Docker 版本

唯一有效的是 Bitnami 的那个，虽然它已安装，但我遇到了以下错误。如何修复？

顺便说一句，我正在使用 Linode 和 Portainer，而 Portainer 运行在 Docker 之上。

日志：

```plaintext
discourse 10:15:22.54
discourse 10:15:22.54 欢迎使用 Bitnami discourse 容器
discourse 10:15:22.54 在 https://github.com/bitnami/containers/issues 提交问题和功能请求
discourse 10:15:22.54
discourse 10:15:22.55 INFO ==> 正在验证 POSTGRESQL_CLIENT_* 环境变量中的设置
discourse 10:15:22.57 WARN ==> 无法解析主机名 postgresql，这可能导致连接问题
discourse 10:15:22.58 WARN ==> 无法解析主机名 redis，这可能导致连接问题
discourse 10:15:22.58 WARN ==> DISCOURSE_DATABASE_PASSWORD 环境变量为空或未设置。设置环境变量 ALLOW_EMPTY_PASSWORD=yes 以允许空白密码。这仅推荐用于开发环境。
discourse 10:15:22.58 WARN ==> DISCOURSE_REDIS_PASSWORD 环境变量为空或未设置。设置环境变量 ALLOW_EMPTY_PASSWORD=yes 以允许空白密码。这仅推荐用于开发环境。
discourse 10:15:22.59 INFO ==> 正在创建 Discourse 配置文件
discourse 10:15:22.62 INFO ==> 正在确保 Discourse 目录存在
discourse 10:15:22.63 INFO ==> 正在尝试连接到数据库服务器
discourse 10:16:22.76 ERROR ==<0xE5><0x87><0xBA>=> 无法连接到数据库
discourse 10:20:07.85
discourse 10:20:07.85 欢迎使用 Bitnami discourse 容器
discourse 10:20:07.85 通过关注来订阅项目更新
discourse 10:20:07.85
discourse 10:20:07.86 INFO ==> 正在验证 POSTGRESQL_CLIENT_* 环境变量中的设置
discourse 10:20:07.89 WARN ==> 无法解析主机名 postgresql，这可能导致连接问题
discourse 10:20:07.89 WARN ==> 无法解析主机名 redis，这可能导致连接问题
discourse 10:20:07.90 WARN ==> DISCOURSE_DATABASE_PASSWORD 环境变量为空或未设置。设置环境变量 ALLOW_EMPTY_PASSWORD=yes 以允许空白密码。这仅推荐用于开发环境。
discourse 10:20:07.90 WARN ==> DISCOURSE_REDIS_PASSWORD 环境变量为空或未设置。设置环境变量 ALLOW_EMPTY_PASSWORD=yes 以允许空白密码。这仅推荐用于开发环境。
discourse 10:20:07.90 INFO ==> 正在创建 Discourse 配置文件
discourse 10:20:07.95 INFO ==> 正在确保 Discourse 目录存在
discourse 10:20:07.96 INFO ==> 正在尝试连接到数据库服务器
discourse 10:21:08.11 ERROR ==<0xE5><0x87><0xBA>=> 无法连接到数据库

```

---

_[View the full topic](https://meta.discourse.org/t/trying-to-install-discourse-on-portainer-but-its-not-pulling-the-base-container/270983)._
