Tools, FAQ, Tutorials:
Deploy ca.example.com Manually
How to Deploy ca.example.com as a Docker container manually?
✍: FYIcenter.com
You can follow this tutorial to
Deploy ca.example.com as a Docker container manually.
1. Verify the configuration of the ca.example.com container defined in the docker-compose.yml file:
$ cd ~/hyperledger-binaries/fabric-samples/basic-network
$ more docker-compose.yml
# Copyright IBM Corp All Rights Reserved
version: '2'
networks:
basic:
services:
ca.example.com:
image: hyperledger/fabric-ca
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_CA_NAME=ca.example.com
- FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem
- FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/4239aa0d..._sk
ports:
- "7054:7054"
command: sh -c 'fabric-ca-server start -b admin:adminpw'
volumes:
- ./crypto-config/peerOrganizations/org1.example.com/ca/:/etc/hyperledger/fabric-ca-server-config
container_name: ca.example.com
networks:
- basic
...
As you can see, the ca.example.com container will be using the "latest" version of "hyperledger/fabric-ca" docker image.
2. Bring down all containers defined docker-compose.yml file:
$ docker-compose -f docker-compose.yml down
3. Bring up the ca.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 ca.example.com Creating network "net_basic" with the default driver Creating ca.example.com ... done
4. Verify the container and the image:
$ docker container list IMAGE STATUS NAMES hyperledger/fabric-ca Up About a minute ca.example.com $ docker images | grep fabric-ca IMAGE TAG SIZE hyperledger/fabric-ca latest 252MB
As you can see, the ca.example.com container has been manually deployed and started with the latest version of "hyperledger/fabric-ca" image. If the image is not available on the Docker, it will be automatically downloaded from the Docker image repository on the Internet.
⇒ Deploy orderer.example.com Manually
⇐ Check "couchdb" Database Server
2020-03-25, ∼1446🔥, 0💬
Popular Posts:
How To Loop through an Array without Using "foreach" in PHP? PHP offers the following functions to a...
Can You Add Values to an Array without Keys in PHP? Can You Add Values to an Array with a Key? The a...
How to use the "Ctrl-p Ctrl-q" sequence to detach console from the TTY terminal of container's runni...
What is the "__init__()" class method? The "__init__()" class method is a special method that will b...
How to use the "forward-request" Policy Statement to call the backend service for an Azure API servi...