首页 > 解决方案 > 对于 biz_wacore_1 无法启动服务 wacore:OCI 运行时创建失败:container_linux.go:345:正在启动

问题描述

我正在尝试提取whatsapp核心的图像并在我的linux机器的docker中运行它们,我提供了docker-compose.yml的代码

**

对于 biz_wacore_1 无法启动服务 wacore:OCI 运行时创建失败:container_linux.go:345:启动容器进程导致“exec:\”/opt/whatsapp/bin/wait_on_postgres.sh\”:stat /opt/whatsapp/bin/wait_on_postgres。 sh:没有这样的文件或目录

** 是我遇到的错误

尝试在我的 docker-compose.yml 中使用 docker-compose up 和 sudo 命令代码

服务:

wacore:
image: docker.whatsapp.biz/coreapp:v2.19.4
command: ["/opt/whatsapp/bin/wait_on_postgres.sh", "/opt/whatsapp/bin/launch_within_docker.sh"]
volumes:
 - whatsappMedia:/usr/local/wamedia
env_file:
  - db.env
environment:
  # This is the version of the docker templates being used to run WhatsApp Business API
  WA_RUNNING_ENV_VERSION: v2.2.3
  ORCHESTRATION: DOCKER-COMPOSE
depends_on:
  - "db"
network_mode: bridge
links:
  - db


waweb:
image: docker.whatsapp.biz/web:v2.19.4
command: ["/opt/whatsapp/bin/wait_on_postgres.sh", "/opt/whatsapp/bin/launch_within_docker.sh"]
ports:
 - "9090:443"
volumes:
 - whatsappMedia:/usr/local/wamedia
env_file:
  - db.env
environment:
  WACORE_HOSTNAME: wacore
  # This is the version of the docker templates being used to run WhatsApp Business API
  WA_RUNNING_ENV_VERSION: v2.2.3
  ORCHESTRATION: DOCKER-COMPOSE
depends_on:
  - "db"
  - "wacore"
links:
  - db
  - wacore
network_mode: bridge

标签: dockerdocker-composewhatsapp

解决方案


推荐阅读