docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc crea
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc crea
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文件,创建成功即可解决问题
更多推荐
所有评论(0)