我试图安装wazuh作为一个码头集装箱,然后我得到这个下面的错误后,进入码头组成了。请帮助
docker-compose up
[+] Running 12/12
⠿ Volume "single-node_filebeat_etc" Created 0.0s
⠿ Volume "single-node_wazuh_queue" Created 0.0s
⠿ Volume "single-node_wazuh_api_configuration" Created 0.0s
⠿ Volume "single-node_wazuh_etc" Created 0.0s
⠿ Volume "single-node_wazuh_logs" Created 0.0s
⠿ Volume "single-node_wazuh_agentless" Created 0.0s
⠿ Volume "single-node_wazuh_var_multigroups" Created 0.0s
⠿ Volume "single-node_wazuh_integrations" Created 0.0s
⠿ Volume "single-node_wazuh_active_response" Created 0.0s
⠿ Volume "single-node_wazuh_wodles" Created 0.0s
⠿ Volume "single-node_filebeat_var" Created 0.0s
⠿ Container single-node-wazuh.manager-1 Created 0.1s
Attaching to single-node-wazuh.dashboard-1, single-node-wazuh.indexer-1, single-node-wazuh.manager-1
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Ubuntu/8f7109a4f50746c8c4118dd0092c7a6ca75ad9de4a8aa814d81043cbe98a9002" to rootfs at "/usr/share/wazuh-indexer/config/certs/admin.pem": mount /run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Ubuntu/8f7109a4f50746c8c4118dd0092c7a6ca75ad9de4a8aa814d81043cbe98a9002:/usr/share/wazuh-indexer/config/certs/admin.pem (via /proc/self/fd/14), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
我试图删除图像,并再次添加,但仍然相同
1条答案
按热度按时间zpgglvta1#
在docker-composite up命令的输出中可以看到的错误消息是指Wazuh索引器容器中的证书存在问题,特别是admin.pem证书,当容器启动时,它找不到所述文件(证书在部署之前生成,并通过卷安装在容器中)。
您之前是否生成了documentation中所示的证书?如果您要执行的是单节点部署,则无需进行任何配置,只需从克隆存储库的单节点目录中运行以下命令:
执行上述命令后,您应该会看到如下所示的输出:
生成后,运行docker-composite up命令,部署应该会成功。