首页 > 解决方案 > odoo docker run show "'postInstallation': 无法连接到 postgresql:5432"

问题描述

我尝试从 docker hub 下载最后一个 odoo 映像,然后运行它并获取 msg:
postgre INFO Trying to connect to PostgreSQL server Error executing 'postInstallation': Failed to connect to postgresql:5432 after N tries

我的日志:

root@test:~# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
bitnami/odoo        latest              8f069490b455        25 hours ago        1.27GB
hello-world         latest              bf756fb1ae65        9 months ago        13.3kB
root@test:~# docker run bitnami/odoo

Welcome to the Bitnami odoo container
Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-odoo
Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-odoo/issues

nami    INFO  Initializing odoo
odoo    INFO  Configuring Odoo database...
postgre INFO  Trying to connect to PostgreSQL server
Error executing 'postInstallation': Failed to connect to postgresql:5432 after 36 tries


更新 :

我试图检查端口状态,它看起来对 pgsql 有效,但 odoo 仍然无法工作

root@test:~# cat /etc/services
postgresql  5432/tcp    postgres    # PostgreSQL Database

标签: odoo

解决方案


I think that error is very obvious; You need a "PostgreSQL server" alongside "odoo". refer to its docker hub page for more info.


推荐阅读