docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start cont
ainer process: error during container init: error mounting "/root/nginx/conf/nginx.conf" to rootfs at "/etc/nginx/nginx.conf": mount /root/nginx/conf/nginx.conf:/etc/nginx/nginx.conf (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.

错误原因为:

error mounting "/root/nginx/conf/nginx.conf" to rootfs at "/etc/nginx/nginx.conf"

就是说在conf目录下,没创建nginx.conf文件,创建成功即可解决问题

 

 

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐