首页 文章

无法在浏览器上查看Hyperledger Composer Rest Server主页

提问于
浏览
0

我通过运行此命令"docker pull hyperledger/composer-rest-server"来拉"hyperledger/composer-rest-server"并通过"docker run --name composer-rest-server --publish 9090:9090 --detach hyperledger/composer-rest-server"运行它 . 然后,当我尝试通过以下方式访问浏览器上的Rest Server:http://Docker-Default-IP:9090/,然后我无法查看HomePage . ?并在浏览器上获取连接拒绝错误 . 同时我也通过运行此命令"docker run --name composer-playground --publish 8080:8080 --detach hyperledger/composer-playground"来运行"hyperledger/composer-playground",我显然可以通过访问URL访问Playground:http://Docker-Default-IP:8080/ . 这没有问题,但为什么composer-rest-server出现问题?
我正在使用对我有用的DockerToolBox .
Docker版本18.03
Windows-7主页

1 回答

  • 0

    特别是在回答Port问题时,你应该试试 --publish 8080:3000 .

    将REST服务器作为容器运行时还有一些其他注意事项this Question在您的应答后几个小时询问 .

相关问题