docker报错Check if the specified host path exists and is the expected type
报错信息Error response from daemon: 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.g
·
报错信息
Error response from daemon: 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 "/data/docker-compose/augmented_reality_dev.sql" to rootfs at "/docker-entrypoint-initdb.d" 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
解決
在docker-compose文件下创建init文件夹,然后将sql文件放进去,另外修改docker-compose的数据卷信息,如果所示,让目录映射目录
更多推荐
已为社区贡献2条内容
所有评论(0)