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 "/etc/timezone" to rootfs at "/etc/timezone": mount /etc/timezone:/etc/timezone (via /proc/self/fd/7), 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.
时间: 2024-04-18 14:32:41 浏览: 313
Docker获取镜像报错docker: Error response from daemon
这个错误通常是由于在挂载文件或文件夹时出现了问题导致的。它提示你检查指定的主机路径是否存在并且类型正确。请确保挂载的路径是正确的,并且在主机上存在,并且是文件夹而不是文件。此外,还要确保你有足够的权限来进行挂载操作。如果问题仍然存在,可以尝试重新安装 Docker 或者查看 Docker 的日志以获取更详细的错误信息。
阅读全文