docker - 对于 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
解决方案
推荐阅读
- go - 银杏到 cobertura 和 JUnit
- ios - 未使用的捆绑资源,在磁盘上找不到,删除后?
- postgresql - Hibernate、postgres CTE 和原生 SQL 查询映射 ARRAY[]::BYTEA[] 与 addScalar
- apache-spark - k8s 上的 Apache Spark:保护驱动程序和执行程序之间的 RPC 通信不起作用
- javascript - 我怎样才能让 id 在 html 中起作用
- c# - GetWindowPlacement 在 Debug 中行为正确,但在 Release 中行为不正确
- powershell - 将数组匹配到多个正则表达式(来自数组)
- javascript - 这个JS算法的时间复杂度是多少
- c++ - 重载分辨率不明确
- azure - ADF - 带有 powershell 脚本的管道