docker启动报错failed to create shim: OCI runtime create failed:

完整报错如下

ERROR: for hailiao_openjdk14  Cannot start service java: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:75: mounting "/command/java/hailiao/hailiao-1.0.0.jar" to rootfs at "/app/hailiao/hailiao-1.0.0.jar" caused: mount through procfd: 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

翻译

错误:对于hailiao_openjdk14,无法启动服务java:无法创建填充程序:OCI运行时创建失败:container_linux。go:380:启动容器进程导致:process_linux。go:545:启动容器初始化导致:rootfs_linux.go:75:在“/app/hailiao/hailiao-1.0.0.jar”处将“/command/java/hailiao-1.0.0.jar”挂载到rootfs导致:通过procfd挂载:不是目录:未知:您正在尝试吗将目录装载到文件上(反之亦然)?检查指定的主机路径是否存在并且是预期的类型

原因竟然是我自己删除了源文件,导致启动失败

解决:重新上传源文件到指定目录

你可能感兴趣的:(docker,容器,运维)