Reputation: 1
I am setting up first network in hyper ledger fabric. while starting the network after creating all the MSP and Channel artifacts (successfully). the containers for the orderer and peer organisations are getting created whereas CLI container is not getting with the error saying it is already in use. Following error messages attached.
Please help.
ERROR: for cli Cannot create container for service cli: b'Conflict. The container name "/cli" is already in use by container "cc7fcff80a7e19f4bb74791af556f6e57f5021c136ad3ca70b5eaff2f9d4bd12". You have to remove (or rename) that container to be able to reuse that name.'
Upvotes: 0
Views: 49
Reputation: 537
Try to run the following command in order to remove only the cli container:
docker rm -f $(docker ps -a | grep cli | awk '{print $1}')
Upvotes: 1