今天尝试部署一个hadoop的docker集群来测试,结果死活不行 报错如下

starting container failed: OCI runtime create failed: container_linux.go:348: starting container process caused 
"process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting 
\\\"/var/lib/docker/volumes/hadoop/datanode1\\\" to rootfs 
\\\"/var/lib/docker/overlay2/8a9722115ad9306b88eb4d5baaddb828cea4b20fbda0d0eb70ce4b3aaa3b39a6/merged\\\" at 
\\\"/var/lib/docker/overlay2/8a9722115ad9306b88eb4d5baaddb828cea4b20fbda0d0eb70ce4b3aaa3b39a6/merged/hadoop/dfs/data\\\"
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运行容器报错:Error response from daemon: OCI runtime create failed - CSDN博客 https://blog.csdn.net/qq_39548286/article/details/79416275

将系统升级到最新的7.5解决(因为系统只有装docker 所以果断的执行yum update -y)