OCI runtime exec failed: container_linux.go:344: starting container process caused “no such file or directory”: unknown

偶尔善良 提交于 2021-02-07 11:10:30

问题


I'm running sample tutorial from https://hyperledger-fabric.readthedocs.io/en/release-1.4.html, trying to run the "Build Your First Network" ./byfn.sh. Network generation works fine, but when I try to up the network, i receive the following error:

$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**

回答1:


Reinstalled docker, deleted previous node modules, re-run the network, finally worked fine.

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




回答2:


If you take the workaround using sh:

Using the docker command docker exec -it <your container> sh will allow you to overcome the issue. It does appear that bash is not installed in the container.

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



来源:https://stackoverflow.com/questions/56489157/oci-runtime-exec-failed-container-linux-go344-starting-container-process-caus

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!