[英]I am not able to dockerize the Corda spring boot server
I am planning to run the Corda nodes and the spring boot server in a docker container .我计划在docker 容器中运行Corda 节点和 spring 引导服务器。 I have used the dockerform task to create the docker-compose file which is running the nodes perfectly.我使用dockerform任务创建了完美运行节点的docker-compose文件。
I have created a Dockerfile to create an image of the spring boot server and build the image with the docker build command.我创建了一个Dockerfile来创建spring 引导服务器的映像,并使用docker 构建命令构建该映像。 I have used that image in the docker-compose file to run all the containers in a bridge network .我在docker-compose文件中使用了该图像来运行桥接网络中的所有容器。
But the spring boot container is not able to connect to the Corda node.但是 spring 引导容器无法连接到 Corda 节点。
Caused by: net.corda.client.rpc.RPCException: Cannot connect to server(s).原因:net.corda.client.rpc.RPCException:无法连接到服务器。 Tried with all available servers.尝试了所有可用的服务器。
This issue is solved.这个问题解决了。 There was some issue with the host and port name.主机名和端口名存在一些问题。 Now it's working.现在它正在工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.