【发布时间】:2018-09-01 16:06:44
【问题描述】:
这几天玩Hyperledger,跟着hyperledger docs,跑the script in the network tutorial的时候报如下错误the source codes of this tutorials is here:
$ ./byfn.sh -m up -l node
Starting for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds
Continue? [Y/n] y
proceeding ...
LOCAL_VERSION=1.2.0
DOCKER_IMAGE_VERSION=1.2.0
Creating peer1.org2.example.com ... done
Creating peer0.org1.example.com ... done
Creating orderer.example.com ... done
Creating peer0.org2.example.com ... done
Creating peer1.org1.example.com ... done
Creating cli ... done
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
我在 Windows 10 下使用最新的 Docker Toolbox 18.06.01,这里有人用 Docker Toolbox 尝试过吗?我不确定这是 Docker Toolbox 问题还是 Windows 系统下的通用 Docker 问题。
【问题讨论】:
-
该错误看起来像是您正在尝试打开文件而不是运行 bash 命令。分享它试图执行的代码,而不是我们在那个教程网站上挖掘。
-
@dfundako 更新了我原来的帖子。只是想确认这个脚本是否在 DockerToolbox 或 Docker for Windows 下工作(似乎 Docker Toolbox 正在死去),在它提到 Docker Toolbox 的文档中,但大多数文档似乎是在 Mac 下完成的(和 Docker for Mac)。对我来说,Docker for Windows(使用 Hyperv)将与 VirtulBox 冲突,我必须将其与其他工具(例如 Vagrant 等)一起使用,这是不兼容的。
-
运行 fabric 的最佳环境是 Ubuntu 16.04 或 18,稍加修改脚本。绝对不是窗户。
标签: docker hyperledger-fabric hyperledger docker-toolbox