OCI运行时执行失败:container_linux.go:344:正在启动容器进程导致“没有这样的文件或目录”:未知

时间:2019-06-07 06:41:05

标签: hyperledger-fabric

我正在从https://hyperledger-fabric.readthedocs.io/en/release-1.4.html运行示例教程,尝试运行“建立您的第一个网络” ./byfn.sh。网络生成工作正常,但是当我尝试建立网络时,出现以下错误:

$cd..../fabric-samples/first-network
$./byfn.sh generate
$./byfn.sh up

    Starting for channel 'mychannel' with CLI timeout of '10' seconds and 
    CLI delay of '3' seconds
    Continue? [Y/n] y
    proceeding ...
    LOCAL_VERSION=1.4.1
    DOCKER_IMAGE_VERSION=1.4.1
    Creating peer0.org1.example.com ... done
    Creating peer1.org2.example.com ... done
    Creating peer0.org2.example.com ... done
    Creating orderer.example.com    ... done
    Creating peer1.org1.example.com ... done
    Creating cli                    ... done

    **OCI runtime exec failed: exec failed: container_linux.go:344: starting 
    container process caused "no such file or directory": unknown
    ERROR !!!! Test failed**

2 个答案:

答案 0 :(得分:1)

如果您使用 sh 来解决:

<块引用>

使用 docker 命令 docker exec -it <your container> sh 将 让你克服这个问题。看来 bash 不是 安装在容器中。

来源:OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: "bash": executable file not found in $PATH": unknown

答案 1 :(得分:0)

重新安装了docker,删除了以前的节点模块,重新运行了网络,终于可以正常工作了。

$./byfn.sh down
$docker rm $(docker ps -a -q)
$docker volume prune
$./byfn.sh generate
$./byfn.sh up

enter image description here

enter image description here