Skip to content

docker: Error response from daemon: failed to create shim task #110

Open
@farfarbiao

Description

@farfarbiao

Describe the bug

Status: Downloaded newer image for quzard/chatgpt-demo:latest
03595be702df46560b44495a259df89614352a5504a3ebf6a4cb9b26e7bdd413
docker: 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 "/host_mnt/Users/admin/Documents/chatgpt-demo/.env" to rootfs at "/app/.env": mount /host_mnt/Users/admin/Documents/chatgpt-demo/.env:/app/.env (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.

Reproduction

m2 电脑可以,m1居然不行

System Info

Status: Downloaded newer image for quzard/chatgpt-demo:latest
03595be702df46560b44495a259df89614352a5504a3ebf6a4cb9b26e7bdd413
docker: 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 "/host_mnt/Users/admin/Documents/chatgpt-demo/.env" to rootfs at "/app/.env": mount /host_mnt/Users/admin/Documents/chatgpt-demo/.env:/app/.env (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.

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dockerquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions