docker-compose 启动报错 caused: 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

 caused: 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

出现这个问题是在编写yml文件的文件夹映射时,不应该写到具体文件,应该映射到目录。

posted @ 2022-02-26 09:22  阿飞afei  阅读(6289)  评论(0编辑  收藏  举报