跳至内容
菜单
此问题已终结
2 回复
6929 查看

I tried this on Debian buster (10) and Manjaro 20. my docker engine info:

❯ docker version
Client: Docker Engine - Community
 Version:           20.10.1
 API version:       1.41
 Go version:        go1.13.15
 Git commit:        831ebea
 Built:             Tue Dec 15 04:34:48 2020
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.1
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       f001486
  Built:            Tue Dec 15 04:32:45 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.3
  GitCommit:        269548fa27e0089a8b8278fc4fc781d7f65a939b
 runc:
  Version:          1.0.0-rc92
  GitCommit:        ff819c7e9184c13b7c2607fe6c30ae19403a7aff
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0


when I am trying to run `docker-compose up --build` against the following .yml file:


version: '2'
services:
  db:
    image: postgres:13
    environment:
      - POSTGRES_PASSWORD=odoo
      - POSTGRES_USER=odoo
      - POSTGRES_DB=postgres
    restart: always
    volumes:
        - ./postgresql:/var/lib/postgresql/data

  odoo14:
    image: odoo:14
    depends_on:
      - db
    ports:
      - "8069:8069"
    tty: true
    command: -- --dev=reload
    volumes:
      - ./addons:/mnt/extra-addons
      - ./etc:/etc/odoo
    restart: always


it works fine as I see from logs however when I try to access the service odoo14 from firefox I get an error The connection was reset & using curl I get an error Empty reply from server.

I checked other questions & they suggested to let the service odoo14 to bind to address 0.0.0.0 instead of localhost. so I tried to add argument in my odoo.conf file 


http_interface = 0.0.0.0

but with no success. even though it is mentioned in the [documentation that 0.0.0.0 is the default interface](https://www.odoo.com/documentation/14.0/reference/cmdline.html#http).

when running the images using docker it is working fine. like using the following two commands:

docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:13
docker run -p 8069:8069 --name odoo --link db:db -t odoo:14.0


I get redirected correctly in the browser. so what would be the problem of docker-compose?

形象
丢弃

Do you have the solution for this problem? I have the same error

编写者 最佳答案

@Tristán Mozos
the was related to docker permissions of the hard-disk partition. so all I did is I moved the code inside `home` directory then it worked fine.

形象
丢弃
最佳答案

Hello Khaled Said,

Can you please follow below steps to resolve the issue:

1) sudo service docker restart

2) docker-compose down && docker-compose up

Thank you!

Regards,




Email:      odoo@aktivsoftware.com  

Skype: kalpeshmaheshwari

   

形象
丢弃
相关帖文 回复 查看 活动
1
9月 22
2452
0
2月 22
3082
1
6月 25
10490
1
5月 25
2852
1
5月 24
2443