本地Dify部署时,如果遇到 Nginx 配置文件挂载失败,如何解决?
本地Dify部署时,如果遇到 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 "/run/desktop/mnt/host/d/Documents/docker/nginx/nginx.conf" to rootfs at "/etc/nginx/nginx.conf": mount /run/desktop/mnt/host/d/Documents/docker/nginx/nginx.conf:/etc/nginx/nginx.conf (via /proc/self/fd/9), 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 执行 docker-compose up -d 即可。
git clone https://github.com/langgenius/dify.git
cd dify/docker
docker compose up -d