Docker启动Elasticsearch时报错
原创
©著作权归作者所有:来自51CTO博客作者会下蛋的咯咯的原创作品,请联系作者获取转载授权,否则将追究法律责任
1、错误日志
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 "/mydata/elasticsearch/config/elasticsearch.yml" to rootfs at
"/usr/share/elasticsearch/config/elasticsearch.yml":
mount /mydata/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml (via /proc/self/fd/6),
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.
2、解决方法
仔细检查 elasticsearch.yml 是目录还是文件,可能错误地将其创建成目录