Tools, FAQ, Tutorials:
Deploy orderer.example.com Manually
How to Deploy orderer.example.com as a Docker container manually?
✍: FYIcenter.com
You can follow this tutorial to
Deploy orderer.example.com as a Docker container manually.
1. Verify the configuration of the orderer.example.com container defined in the docker-compose.yml file:
$ cd ~/hyperledger-binaries/fabric-samples/basic-network $ more docker-compose.yml ... orderer.example.com: container_name: orderer.example.com image: hyperledger/fabric-orderer environment: - FABRIC_LOGGING_SPEC=info - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/etc/hyperledger/configtx/genesis.block - ORDERER_GENERAL_LOCALMSPID=OrdererMSP - ORDERER_GENERAL_LOCALMSPDIR=/etc/hyperledger/msp/orderer/msp working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer command: orderer ports: - 7050:7050 volumes: - ./config/:/etc/hyperledger/configtx - ./crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/:/etc/hyperledger/msp/orderer - ./crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/:/etc/hyperledger/msp/peerOrg1 networks: - basic ...
As you can see, the orderer.example.com container will be using the "latest" version of "hyperledger/fabric-orderer" docker image.
2. Bring down all containers defined docker-compose.yml file:
$ docker-compose -f docker-compose.yml down
3. Bring up the orderer.example.com container defined in docker-compose.yml file. If container is not there, create it from the image. If the image is not there, download it from the Internet.
$ docker-compose -f docker-compose.yml up -d orderer.example.com Creating network "net_basic" with the default driver Creating orderer.example.com ... done
4. Verify the container and the image:
$ docker container list IMAGE STATUS NAMES hyperledger/fabric-orderer Up About a minute orderer.example.com $ docker images | grep fabric-orderer IMAGE TAG SIZE hyperledger/fabric-orderer latest 173MB
As you can see, the orderer.example.com container has been manually deployed and started with the latest version of "hyperledger/fabric-orderer" image. If the image is not available on the Docker, it will be automatically downloaded from the Docker image repository on the Internet.
⇒ Deploy peer0.org1.example.com Manually
⇐ Deploy ca.example.com Manually
2020-03-25, 1282🔥, 0💬
Popular Posts:
How to dump (or encode, serialize) a Python object into a JSON string using json.dumps()? The json.d...
What Is HTML? HTML (HyperText Markup Language) is the standard markup language for creating Web page...
How to create a "Sign-up or Sign-in" user flow policy in my Azure AD B2C directory? If you want to b...
How to run PowerShell Commands in Dockerfile to change Windows Docker images? When building a new Wi...
How to pull NVIDIA CUDA Docker Image with the "docker image pull nvidia/cuda" command? If you are ru...