Deploy Manually


How to Deploy as a Docker container manually?



You can follow this tutorial to Deploy as a Docker container manually.

1. Verify the configuration of the 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'


    image: hyperledger/fabric-ca
      - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
      - FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/
      - FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/4239aa0d..._sk
      - "7054:7054"
    command: sh -c 'fabric-ca-server start -b admin:adminpw'
      - ./crypto-config/peerOrganizations/
      - basic

As you can see, the 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 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

Creating network "net_basic" with the default driver
Creating ... done

4. Verify the container and the image:

$ docker container list
IMAGE                   STATUS              NAMES
hyperledger/fabric-ca   Up About a minute

$ docker images | grep fabric-ca
IMAGE                   TAG                 SIZE
hyperledger/fabric-ca   latest              252MB

As you can see, the 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 Manually

⇐ Check "couchdb" Database Server

⇑ fabric-samples/basic-network

⇑⇑ Hyperledger Tutorials

2020-03-25, 811👍, 0💬