Error response from daemon: Cannot restart container c86df8e5a9ad: OCI runtime create failed: container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: rootfs_linux.go:59: mounting "/path/to/config.json" to rootfs at "/var/lib/docker/overlay2/413e5cd62cdb654463687a0498563c53e65d2150c19b816acc44930714e7ec56/merged/config.json" 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
docker挂载配置文件为/path/to/config.json 此/path/to/config.json 为file属性 但是众所周知 file属性是没法编辑的 只能读. 所以就导致无法把自定义配置写进去 如果更改/path/to/config.json的文件属性 就会导致docker无法启动
Error response from daemon: Cannot restart container c86df8e5a9ad: OCI runtime create failed: container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: rootfs_linux.go:59: mounting "/path/to/config.json" to rootfs at "/var/lib/docker/overlay2/413e5cd62cdb654463687a0498563c53e65d2150c19b816acc44930714e7ec56/merged/config.json" 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