Tools, FAQ, Tutorials:
Deploy cli Container Manually
How to Deploy cli as a Docker container manually?
✍: FYIcenter.com
You can follow this tutorial to
Deploy cli as a Docker container manually.
1. Verify the configuration of the cli container defined in the docker-compose.yml file:
$ cd ~/hyperledger-binaries/fabric-samples/basic-network $ more docker-compose.yml ... couchdb: container_name: couchdb image: hyperledger/fabric-couchdb # Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password # for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode. environment: - COUCHDB_USER= - COUCHDB_PASSWORD= ports: - 5984:5984 networks: - basic ...
As you can see, the cli container will be using the "latest" version of "hyperledger/fabric-cli" docker image.
2. Bring down all containers defined docker-compose.yml file:
$ docker-compose -f docker-compose.yml down
3. Bring up the cli 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 cli Creating network "net_basic" with the default driver Creating cli ... done
4. Verify the container and the image:
$ docker container list IMAGE STATUS NAMES hyperledger/fabric-tools Up About a minute cli $ docker images | grep fabric-tools IMAGE TAG SIZE hyperledger/fabric-tools latest 1.55GB
As you can see, the cli container has been manually deployed and started with the latest version of "hyperledger/fabric-tools" image. If the image is not available on the Docker, it will be automatically downloaded from the Docker image repository on the Internet.
Â
⇒ Manage basic-network with cli Container
⇠Deploy couchdb Container Manually
⇑ fabric-samples/basic-network
⇑⇑ Hyperledger Tutorials
2020-03-15, 770👍, 0💬
Popular Posts:
Why am I getting this "Docker failed to initialize" error? After installing the latest version of Do...
How to create a navigation file like navigation.xhtml for an EPUB 3.0 book? At least one navigation ...
Where to find tutorials on how to create Your Own Functions in PHP? A collection of tutorials to ans...
How To Read a File in Binary Mode in PHP? If you have a file that stores binary data, like an execut...
How to add request URL Template Parameters to my Azure API operation to make it more user friendly? ...