docker icon indicating copy to clipboard operation
docker copied to clipboard

Docker run "crashed" after docker build: <Database connection failure>

Open Lazatman opened this issue 2 years ago • 3 comments

1°) After clonning github repository and enter to the folder doo15: https://github.com/odoo/docker/tree/master/15.0 2°) enter to the folder and build the Dockerfile sucha as: $ docker build -t odoo_i15:latest . 3°) After build run the docker image: $docker run odoo_i15 I get:

Database connection failure: could not translate host name "db" to address: Name or service not known

Lazatman avatar Feb 25 '22 06:02 Lazatman

Hi, I'm facing the same problem, please tell me if you resolved it ?

luna9722 avatar Jun 02 '22 16:06 luna9722

Yes I reslove the problem by specifying docker network... And specified db_host and db_password when launching Odoo container

Lazatman avatar Jun 03 '22 07:06 Lazatman

Yes I reslove the problem by specifying docker network... And specified db_host and db_password when launching Odoo container

what are the ommand?

M-Shabbir0346 avatar Nov 07 '22 11:11 M-Shabbir0346

@Lazatman Can you close this issue if no longer needed?

lathama avatar Apr 02 '24 19:04 lathama