使用docker compose up命令出现nginx错误
错误提示为:
error response from daemon: 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 "/opt/langchat/langchat-main/nginx.conf" to rootfs at "/etc/nginx/nginx.conf": mount /opt/langchat/langchat-main/nginx.conf:/etc/nginx/nginx.conf (via /proc/self/fd/6), 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脚本使用的是gitee上的:
https://gitee.com/TyCoding/langchat/blob/main/docker-compose.yml
使用docker compose up命令出现nginx错误 错误提示为: error response from daemon: 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 "/opt/langchat/langchat-main/nginx.conf" to rootfs at "/etc/nginx/nginx.conf": mount /opt/langchat/langchat-main/nginx.conf:/etc/nginx/nginx.conf (via /proc/self/fd/6), 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脚本使用的是gitee上的: https://gitee.com/TyCoding/langchat/blob/main/docker-compose.yml