2017-09-10 1 views
0

Ceci est oficial fichier Odoo exemple docker-Compose:Odoo exemple avec docker compose pas de travail

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: 

Quand je lance 'docker-Compose jusqu'à -d' sortie l'erreur suivante:

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. 

Le fichier docker-compose.yml se trouve dans le répertoire test2.

Ceci est Odoo avec Docker docs: https://hub.docker.com/_/odoo/

Que peut-on se passe?

Merci!

+1

Redémarrez le système et réessayez –

+0

@TarunLalwani Merci, problème résolu :) – alvarezsh

Répondre

1

Chaque fois que vous voyez des erreurs liées interfaces Veth, cela signifie généralement que le service de docker est allé dans un état où l'allocation de réseau ne fonctionne pas

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. 

Vous devez redémarrer le service docker dans de tels cas. Si cela n'aide pas, redémarrez l'ensemble du système