简体   繁体   English

hyperledger-fabric byfn.sh -m失败,未找到script / scripts.sh

[英]hyperledger-fabric byfn.sh -m failed with script/scripts.sh not found

I am running the byfn.sh script within docker container on windows 10. 我正在Windows 10的Docker容器中运行byfn.sh脚本。

Docker version 18.03.0-ce, build 0520e24302 Docker版本18.03.0-CE,内部版本0520E24302

I am getting the script.sh not found error message, please help. 我收到了script.sh找不到错误消息,请帮忙。

$ ./byfn.sh -m up $ ./byfn.sh -m向上

Starting with channel 'mychannel' and CLI timeout of '10' seconds and CLI 
delay of '3' seconds
Continue? [Y/n] y
proceeding ...
2018-04-28 20:28:24.254 UTC [main] main -> INFO 001 Exiting.....
LOCAL_VERSION=1.1.0
DOCKER_IMAGE_VERSION=1.1.0
Starting peer1.org2.example.com ... done
Starting peer0.org2.example.com ... done
Starting peer1.org1.example.com ... done
Starting peer0.org1.example.com ... done
Starting orderer.example.com    ... done
cli is up-to-date
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such file or directory": unknown
ERROR !!!! Test failed

Resolved the issue by copying the entire fabric-samples directory to c:\\users\\ directory. 通过将整个fabric-samples目录复制到c:\\ users \\目录来解决此问题。

Having the fabric-samples directory anywhere else on c:\\ drive gives the error. 在c:\\驱动器上其他任何位置都具有fabric-samples目录,则会出现此错误。 Perhaps an explicit path needs to be defined somewhere if placing fabric-samples in any location other than c:\\users\\ 如果将结构样本放置在c:\\ users \\以外的任何位置,则可能需要在某处定义显式路径

I figured that the volumes from the docker container under Windows are not correctly mounted (not at all). 我发现Windows下的docker容器中的卷未正确安装(根本没有安装)。 But I don't know how to fix it... I'll get back if I have more information on this issue or even a solution. 但是我不知道如何解决它。如果我有更多关于此问题的信息,甚至解决方案,我都会回来的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM