尝试更新 hyperledger-composer 版本,仍然不兼容客户端版本

Try to update hyperledger-composer version,but still not compatible with the client version

我只是 Hyperledger 的新手 Composer.So 我尝试按照本指南使用 Docker 部署 REST 服务器

Deploying the REST server for a business network

然后当我 运行 docker 时,它在 docker logs

上显示此错误
docker logs rest
0|composer | WARNING: NODE_APP_INSTANCE value of '0' did not match any instance config file names.
0|composer | WARNING: See https://github.com/lorenwest/node-config/wiki/Strict-Mode
0|composer | Discovering types from business network definition ...
0|composer | D0831 07:04:36.180952003      24 env_linux.c:66]             Warning: insecure environment read function 'getenv' used
0|composer | D0831 07:04:37.574385287      24 env_linux.c:66]             Warning: insecure environment read function 'getenv' used
0|composer | Connection fails: Error: Error trying to ping. Error: Composer runtime (0.11.3) is not compatible with client (0.11.2)
0|composer | It will be retried for the next request.
0|composer | Exception: Error: Error trying to ping. Error: Composer runtime (0.11.3) is not compatible with client (0.11.2)
0|composer | Error: Error trying to ping. Error: Composer runtime (0.11.3) is not compatible with client (0.11.2)
0|composer |     at _checkRuntimeVersions.then.catch (/usr/local/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:696:34)
PM2        | App [composer-rest-server] with id [0] and pid [24], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:composer-rest-server id:0
PM2        | App name:composer-rest-server id:0 online

所以我尝试按照同一文档上的本指南更新版本

Updating Hyperledger Composer

但是在我stop/reboot fabric之后,再次重新部署chaincode和运行 docker,错误仍然存​​在。

谁能告诉我我遗漏了什么?

注意:我也试过,但还是有同样的问题。

好的,我已经解决了问题。我删除了所有 docker 图像并开始使用新结构再次下载图像,它成功了!!

docker rmi $(docker images  -q)