Reputation: 934
I'm running sample tutorial from Hyperledger Fabric Doc, trying to run the "Build Your First Network" sample with following command ./byfn.sh
.
Network generation works fine, but when I try to up the network:
$ cd..../fabric-samples/first-network
$ ./byfn.sh generate
$ ./byfn.sh up
I receive the following error:
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**
Upvotes: 2
Views: 1973
Reputation: 9532
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.
Upvotes: 2
Reputation: 934
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
Upvotes: 2