From 2d32a8e7e37a9de571f140e746b6ff88c8aaa233 Mon Sep 17 00:00:00 2001 From: Tatsuya Sato Date: Wed, 11 May 2022 23:25:31 +0900 Subject: [PATCH] test-network-k8s: Add CC debugging procedures for Linux (#735) In chaincode debugging guidance, using the Docker host alias `host.docker.internal` is assumed. But, the alias is not yet supported for Linux. So, this patch adds its alternate procedure for Linux. Signed-off-by: Tatsuya Sato --- test-network-k8s/docs/CHAINCODE_AS_A_SERVICE.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test-network-k8s/docs/CHAINCODE_AS_A_SERVICE.md b/test-network-k8s/docs/CHAINCODE_AS_A_SERVICE.md index 2de18a51..cc8040c2 100644 --- a/test-network-k8s/docs/CHAINCODE_AS_A_SERVICE.md +++ b/test-network-k8s/docs/CHAINCODE_AS_A_SERVICE.md @@ -105,6 +105,15 @@ export TEST_NETWORK_CHAINCODE_ADDRESS=host.docker.internal:9999 network cc package basic_1.0 asset-transfer-debug $PWD/build/asset-transfer-debug.tgz ``` +*NOTE:* The Docker host alias `host.docker.internal` is not yet supported for Linux. +In Linux environments, as a workaround, you should specify the IP address of the host directly instead of `host.docker.internal`: + +```shell +export TEST_NETWORK_CHAINCODE_ADDRESS=:9999 + +network cc package basic_1.0 asset-transfer-debug $PWD/build/asset-transfer-debug.tgz +``` + ### Launch When chaincode is launched locally, it must declare the package ID in the environment as if the process had been managed