Docker和wazuh容器安装



我试图安装wazuh作为docker容器,然后我在进入docker-compose up后得到以下错误。请帮助

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

我试图删除图像并再次添加,但仍然是相同的

docker-compose up的输出中可以看到的错误消息命令指的是Wazuh索引器容器中的证书出现问题,特别是admin.pem证书,当容器启动时,它找不到上述文件(证书是在部署之前生成的,并通过卷挂载到容器中)。

您以前是否按照我们文档中的指示生成了证书?如果您要做的是单节点部署,则不必配置任何内容,只需在克隆存储库的单节点目录下运行以下命令:

docker-compose -f generate-indexer-certs.yml run --rm generator

执行上述命令后,您应该有如下输出:

Cert tool exists in Packages bucket
05/12/2022 13:46:24 INFO: Admin certificates created.
05/12/2022 13:46:24 INFO: Wazuh indexer certificates created.
05/12/2022 13:46:24 INFO: Wazuh server certificates created.
05/12/2022 13:46:24 INFO: Wazuh dashboard certificates created.
Moving created certificates to destination directory
changing certificate permissions
Setting UID indexer and dashboard
Setting UID for wazuh manager and worker

生成后,运行docker-compose up命令和部署应该成功。

相关内容

  • 没有找到相关文章

最新更新