2017-09-10 103 views
0

這是公報Odoo文件泊塢窗,撰寫例如:與搬運工人Odoo例如譜寫沒有工作

version: '2' 
services: 
    web: 
    image: odoo:10.0 
    depends_on: 
     - db 
    ports: 
     - "8069:8069" 
    volumes: 
     - odoo-web-data:/var/lib/odoo 
     - ./config:/etc/odoo 
     - ./addons:/mnt/extra-addons 
    db: 
    image: postgres:9.4 
    environment: 
     - POSTGRES_PASSWORD=odoo 
     - POSTGRES_USER=odoo 
     - PGDATA=/var/lib/postgresql/data/pgdata 
    volumes: 
     - odoo-db-data:/var/lib/postgresql/data/pgdata 
volumes: 
    odoo-web-data: 
    odoo-db-data: 

當我運行「泊塢窗,構成了-d」輸出下一個錯誤:

ERROR: for test2_db_1 Cannot start service db: failed to create endpoint test2_db_1 on network test2_default: failed to add the host (veth95f6516) <=> sandbox (veth4949623) pair interfaces: operation not supported 

ERROR: for db Cannot start service db: failed to create endpoint test2_db_1 on network test2_default: failed to add the host (veth95f6516) <=> sandbox (veth4949623) pair interfaces: operation not supported 
ERROR: Encountered errors while bringing up the project. 

docker-compose.yml文件位於test2目錄中。

這是Odoo與碼頭工人文檔:https://hub.docker.com/_/odoo/

什麼能發生?

謝謝!

+1

重新啓動系統,然後再試一次 –

+0

@TarunLalwani謝謝,問題解決:) – alvarezsh

回答

1

只要看到相關VETH接口上的錯誤,這通常意味着搬運工服務已經在某些狀態下,網絡配置不工作

ERROR: for test2_db_1 Cannot start service db: failed to create endpoint test2_db_1 on network test2_default: failed to add the host (veth95f6516) <=> sandbox (veth4949623) pair interfaces: operation not supported 

ERROR: for db Cannot start service db: failed to create endpoint test2_db_1 on network test2_default: failed to add the host (veth95f6516) <=> sandbox (veth4949623) pair interfaces: operation not supported 
ERROR: Encountered errors while bringing up the project. 

,應該重新啓動在這種情況下,泊塢窗服務。如果這沒有幫助,然後重新啓動整個系統