fabric-explorer的docker
时间: 2023-10-17 09:26:54 浏览: 100
fabric-explorer的docker镜像可通过以下步骤安装和运行:
1. 首先,打开终端或命令提示符,并在浏览器中输入网址http://localhost:8080,以登录监视浏览器。
2. 接下来,在终端或命令提示符中输入以下命令来启动fabric-explorer的docker容器:
```shell
echo "=========== Explorer start Installing =============="
# remove docker container
docker rm -f explorer.mynetwork.com
docker rm -f explorerdb.mynetwork.com
# remove docker volumes
docker volume rm artifacts_walletstore
docker volume rm artifacts_pgdata
# start up the docker container
docker-compose up -d
echo "=========== Explorer Successfully installed =============="
```
3. 之后,进入fabric-explorer的目录,并将fabric网络的crypto-config文件夹复制到该目录下。然后执行以下命令:
```shell
cd fabric-explorer
cp -R /path/to/crypto-config .
touch docker-compose.yaml
touch config.json
touch connection-profile/test-network.json
```
4. 最后,在终端或命令提示符中执行以下命令来启动fabric-explorer的docker容器:
```shell
docker-compose up -d
```
这样,fabric-explorer的docker镜像就成功安装并运行了。你可以通过访问http://localhost:8080来访问fabric-explorer,并使用以下登录凭据进行登录:
- 用户名:admin
- 密码:adminpw
请注意,上述的路径都是相对于docker容器的绝对路径,而不是容器外的路径。你需要根据自己的网络配置进行相应的调整。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Fabric-explorer 搭建](https://blog.csdn.net/weixin_41946008/article/details/124609204)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [fabric-explorer快速搭建(dockercompose)](https://blog.csdn.net/qq_21553301/article/details/116948043)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文