问题: HAP 私有部署版运维平台 部署失败
部署参考文档: https://docs-pd.mingdao.com/deployment/ops/deployment/docker-compose
部署步骤:
1, 按照文档创建配置文件 /data/mingdao/script/ops.yaml
2, 启动配置文件: docker-compose -f /data/mingdao/script/ops.yaml up -d
启动后报错:
```Prolog
WARNING: Some networks were defined but are not used by any service: script_default
Creating network "script_default" with the default driver
Creating script_ops-tempo_1 ...
Creating script_nodeagent_1 ...
Creating script_ops-grafana_1 ...
Creating script_ops-loki_1 ... error
Creating script_ops-prometheus_1 ...
Creating script_agent_1 ...
Creating script_ops-alloy_1 ...
ERROR: for script_ops-loki_1 Cannot start service ops-loki: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/data/mingdao/script/volume/loki/loki-config.yaml" to rootfs at "/etc/loki/loki-config.yaml": mount src=/data/mingdao/script/volume/loki/loki-config.yaml, dst=/etc/loki/loki-config.yaml, dstFd=/proc/thread-self/fd/11, flags=MS_BIND|MS_REC: not a directory: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and i
Creating script_ops-tempo_1 ... done
Creating script_nodeagent_1 ... done
Creating script_ops-grafana_1 ... donerunc create failed: unable to start container process: error during container init: error mounting "/data/mingdao/script/volume/alloy/config.alloy" to root
Creating script_ops-prometheus_1 ... done
Creating script_agent_1 ... donected type
ERROR: for ops-loki Cannot start service ops-loki: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/data/mingdao/script/volume/loki/loki-config.yaml" to rootfs at "/etc/loki/loki-config.yaml": mount src=/data/mingdao/script/volume/loki/loki-config.yaml, dst=/etc/loki/loki-config.yaml, dstFd=/proc/thread-self/fd/11, flags=MS_BIND|MS_REC: not a directory: 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
ERROR: for ops-alloy Cannot start service ops-alloy: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/data/mingdao/script/volume/alloy/config.alloy" to rootfs at "/etc/alloy/config.alloy": mount src=/data/mingdao/script/volume/alloy/config.alloy, dst=/etc/alloy/config.alloy, dstFd=/proc/thread-self/fd/11, flags=MS_BIND|MS_REC: not a directory: 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
ERROR: Encountered errors while bringing up the project.