Skip to content

Commit fdf13d2

Browse files
committed
[FAB-7992]Fix doc to restart cli container in RYFN.
In Reconfiguring Your First Network, the document has incorrect instruction about relaunching cli container. According to the instruction described in fabric/docs/source/channel_update.rst, ``docker start cli`` is executed to relaunch cli container, which is configured in Bring Your First Network. However, cli container fails to relaunch because a script is called to build the same existing fabric network. To use cli container for manual work in Reconfiguring Your Fabric network, this script should not be executed. This CR adds the instruction to comment out script in docker-compose-cli.yaml and relaunch cli container. Change-Id: I1b732e1c3b73292dfd0f1931fd81064ea6cab14b Signed-off-by: Yuki Kondo <yuki.kondo@hal.hitachi.com>
1 parent 0c3673e commit fdf13d2

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

docs/source/channel_update.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,23 @@ your containers:
134134
135135
docker ps -a
136136
137-
If necessary, relaunch the CLI:
137+
If necessary, relaunch the CLI. We want to run several commands manually.
138+
Before relaunching the network, open the ``docker-compose-cli.yaml`` file
139+
and comment out the script.sh in the CLI container. If left uncommented,
140+
that script will try to launch the same network again and fail due to conflict.
141+
Your docker-compose should be modified to look like this:
138142

139143
.. code:: bash
140144
141-
docker start cli
145+
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
146+
# command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME}; sleep $TIMEOUT'
147+
volumes
148+
149+
After modifying ``docker-compose-cli.yaml``, relaunch the CLI container:
150+
151+
.. code:: bash
152+
153+
docker-compose -f docker-compose-cli.yaml up -d cli
142154
143155
Now install the ``jq`` tool into the container. This tool allows us script interactions
144156
with JSON objects returned by the ``configtxlator`` tool:

0 commit comments

Comments
 (0)