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 是目录还是文件,可能错误地将其创建成目录