docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/data/my-redis-dump/dump.rb\\\" to rootfs \\\"/var/lib/docker/overlay2/1cc58312fa57ad17a66529910626da395342bb53ceafb15514ae9ff5b9edfef5/merged\\\" at \\\"/var/lib/docker/overlay2/1cc58312fa57ad17a66529910626da395342bb53ceafb15514ae9ff5b9edfef5/merged/var/lib/gems/2.5.0/gems/redis-dump-0.4.0/lib/redis/dump.rb\\\" 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.
时间: 2023-07-19 13:56:18 浏览: 497
解决docker报错Error response from daemon oci runtime error_centos安装docker
5星 · 资源好评率100%
这是一个关于Docker的错误信息,看起来是在启动容器时挂载文件出错了。容器试图将 "/data/my-redis-dump/dump.rb" 挂载到容器内的 "/var/lib/gems/2.5.0/gems/redis-dump-0.4.0/lib/redis/dump.rb",但是在挂载时出现了问题。可能是因为指定的路径不存在,或者是文件类型不符合预期,比如试图将一个目录挂载到文件上,或者将一个文件挂载到目录上。建议检查一下指定的路径是否存在,并且是否符合预期的文件类型。
阅读全文