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

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐