账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    docker创建nginx容器出问题
    37
    0
    命令:docker run -p 80:80 --name mynginx -v $PWD/www:/www -v $PWD/conf/nginx.conf:/etc/nginx/nginx.conf -v $PWD/logs:/wwwlogs  -d nginx
    docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/root/conf/nginx.conf\\\" to rootfs \\\"/var/lib/docker/overlay2/0d3bc40b3dbdaeaa49ca1fe50f5e4fac7a265066cb9a7eff4202b1aa5d0abdcf/merged\\\" at \\\"/var/lib/docker/overlay2/0d3bc40b3dbdaeaa49ca1fe50f5e4fac7a265066cb9a7eff4202b1aa5d0abdcf/merged/etc/nginx/nginx.conf\\\" 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.

    这个问题怎么解决?

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部