与docker工人的Odoo例子组成没有工作
这是官方的Odoo文件docker-compose例子:
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:
当我运行“docker-compose up -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目录中。
这是带有Docker文档的Odoo: https ://hub.docker.com/_/odoo/
会发生什么?
谢谢!
每当看到与veth接口有关的错误时,通常意味着docker服务已经进入networking分配不起作用的状态
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.
在这种情况下,您应该重新启动泊坞窗服务。 如果这没有帮助,那么重新启动整个系统