Docker错误:来自守护程序的错误响应:挂载被拒绝:

时间:2019-01-25 09:12:50

标签: docker dockerfile quorum docker-run

我正在尝试安装法定仲裁器:https://github.com/synechron-finlabs/quorum-maker/wiki

它说我应该运行setup.sh文件,这是文件的内容:

#!/bin/bash

#Menu system for launching appropriate scripts based on user choice
source qm.variables

#Fix to automatically export ports on Mac OS. 
os=$(uname)
if [ "$os" = "Darwin" ]; then
    touch .qm_export_ports
fi

winpty docker run --rm -v $(pwd)/$line:/${PWD##*/} -w /${PWD##*/} $dockerImage lib/menu.sh $@

if [ -f .nodename ]; then
    nodename=$(cat .nodename)
    rm -f .nodename
    cd $nodename    
    ./start.sh  $@
fi

现在,当我使用./setup.sh运行文件时,出现此错误:

C:/Program Files/Docker/Docker/Resources/bin/docker.exe: Error response from daemon: Mount denied:
The source path "C:/Blockchain/quorum-maker/quorum-maker/;C"
doesn't exist and is not known to Docker.
See 'C:/Program Files/Docker/Docker/Resources/bin/docker.exe run --help'.

已经尝试解决该错误,但直到现在都没有找到解决方案。

更新

值得一提的是,在此之前,它位于setup.sh文件中:

docker run --rm -v $(pwd)/$line:/${PWD##*/} -w /${PWD##*/} $dockerImage lib/menu.sh $@

但我将其更改为:

winpty docker run --rm -v $(pwd)/$line:/${PWD##*/} -w /${PWD##*/} $dockerImage lib/menu.sh $@

因为我收到此错误:

the input device is not a TTY.  If you are using mintty, try prefixing the command with 'winpty'

我在这里阅读了解决方法:docker error : the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'

0 个答案:

没有答案