小白求问,请问我在执行了docker compose up -d后,返回这个结果怎么修复? #250

Closed
opened 2026-02-21 17:26:31 -05:00 by yindo · 1 comment
Owner

Originally created by @tigertigerpi on GitHub (Jul 6, 2023).

D:\Documents\docker>docker compose up -d
[+] Running 33/15
✔ web 8 layers [⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 473.5s
✔ worker 22 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 406.8s
✔ api Pulled 406.7s

[+] Running 7/8
✔ Network docker_default Created 0.3s
✔ Container docker-weaviate-1 Started 12.1s
✔ Container docker-db-1 Started 12.1s
✔ Container docker-web-1 Started 12.1s
✔ Container docker-redis-1 Started 12.2s
✔ Container docker-worker-1 Started 9.4s
✔ Container docker-api-1 Started 8.9s

  • Container docker-nginx-1 Starting 12.9s
    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

我专门在D盘的documents文件夹下,新建了一个docker文件夹来运行。但是,通过询问ChatGPT发现:
image

请问应该如何解决?谢谢。

Originally created by @tigertigerpi on GitHub (Jul 6, 2023). D:\Documents\docker>docker compose up -d [+] Running 33/15 ✔ web 8 layers [⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 473.5s ✔ worker 22 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 406.8s ✔ api Pulled 406.7s [+] Running 7/8 ✔ Network docker_default Created 0.3s ✔ Container docker-weaviate-1 Started 12.1s ✔ Container docker-db-1 Started 12.1s ✔ Container docker-web-1 Started 12.1s ✔ Container docker-redis-1 Started 12.2s ✔ Container docker-worker-1 Started 9.4s ✔ Container docker-api-1 Started 8.9s - Container docker-nginx-1 Starting 12.9s 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 我专门在D盘的documents文件夹下,新建了一个docker文件夹来运行。但是,通过询问ChatGPT发现: ![image](https://github.com/langgenius/dify/assets/138350800/48fceb08-5659-4e27-a7da-86024ad90f51) 请问应该如何解决?谢谢。
yindo closed this issue 2026-02-21 17:26:31 -05:00
Author
Owner

@crazywoola commented on GitHub (Jul 6, 2023):

git clone PROJECT
cd PROJECT/docker
docker compose up -d
@crazywoola commented on GitHub (Jul 6, 2023): ``` git clone PROJECT cd PROJECT/docker docker compose up -d ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#250