Skip to content

Commit

Permalink
Test network does not work with latest Docker
Browse files Browse the repository at this point in the history
Signed-off-by: pama-ibm <pama@ibm.com>
(cherry picked from commit 0515d17)
  • Loading branch information
pamandrejko authored and mergify[bot] committed Jan 29, 2021
1 parent 8dc9930 commit fc63fcd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/source/prereqs.rst
Expand Up @@ -34,6 +34,8 @@ operating, or developing on (or for), Hyperledger Fabric:
Toolbox <https://docs.docker.com/toolbox/toolbox_install_windows/>`__ -
again, Docker version Docker 17.06.2-ce or greater is required.

The Fabric sample test network has been successfully
verified with Docker 2.5.0.1. Higher versions may not work at this time.
You can check the version of Docker you have installed with the following
command from a terminal prompt:

Expand Down
15 changes: 14 additions & 1 deletion docs/source/test_network.md
Expand Up @@ -16,7 +16,7 @@ nodes are isolated within a Docker Compose network, the test network is not conf
To learn how to use Fabric in production, see [Deploying a production network](deployment_guide_overview.html).

**Note:** These instructions have been verified to work against the
latest stable Docker images and the pre-compiled setup utilities within the
latest stable Fabric Docker images and the pre-compiled setup utilities within the
supplied tar file. If you run these commands with images or tools from the
current master branch, it is possible that you will encounter errors.

Expand All @@ -26,6 +26,8 @@ Before you can run the test network, you need to clone the `fabric-samples`
repository and download the Fabric images. Make sure that you have installed
the [Prerequisites](prereqs.html) and [Installed the Samples, Binaries and Docker Images](install.html).

**Note:** The test network has been successfully verified with Docker version 2.5.0.1 and is the recommended version at this time. Higher versions of Docker may not work.

## Bring up the test network

You can find the scripts to bring up the network in the `test-network` directory
Expand Down Expand Up @@ -615,6 +617,17 @@ If you have any problems with the tutorial, review the following:
```
Select ``y``.

- If you try to create a channel with the command `./network.sh createChannel`,
and it fails with the following error:
```
[comm.tls] ClientHandshake -> ERRO 003 Client TLS handshake failed after 1.908956ms with error: EOF remoteaddress=127.0.0.1:7051
Error: error getting endorser client for channel: endorser client failed to connect to localhost:7051: failed to create new connection: context deadline exceeded
After 5 attempts, peer0.org1 has failed to join channel 'mychannel'
```

You need to uninstall Docker and reinstall the recommended version 2.5.0.1. Then, reclone the `fabric-samples`
repository before reattempting the commands.

- If you see an error similar to the following:
```
/bin/bash: ./scripts/createChannel.sh: /bin/bash^M: bad interpreter: No such file or directory
Expand Down

0 comments on commit fc63fcd

Please sign in to comment.