# CAPE协议交互教程

By [0xjingjing](https://paragraph.com/@0xjingjing-2) · 2022-08-26

---

运行 CAPE 演示 UI 需要docker和docker-compose命令，Docker 容器用于运行 CAPE ，该容器在本地为 UI 提供服务并管理钱包功能。

一、安装WSL（windows下的linux）
-----------------------

要在Windows系统下运行docker需要安装WSL（方法很多，可以直接在命令行下安装）

**如果不会安装请到这里学习👇**

[Manual installation steps for older versions of WSL](https://docs.microsoft.com/en-us/windows/wsl/install-manual)

[Step by step instructions to manually install WSL on older versions of Windows, rather than using the wsl install command.](https://docs.microsoft.com/en-us/windows/wsl/install-manual)

[docs.microsoft.com](https://docs.microsoft.com/en-us/windows/wsl/install-manual)

**安装方法1：请按照Windows以下步骤操作：**

在windows下启动PowerShell 右键点击windows徽标弹出找到PowerShell，使用下面命令安装WSL

    wsl --install
    

**安装方法2：请按照Windows以下步骤操作：**

[Get $Ubuntu 20.04 from the Microsoft Store](https://apps.microsoft.com/store/detail/ubuntu-2004/9N6SVWS3RX71?hl=zh-cn&gl=CN)

[Ubuntu 20.04 LTS on Windows allows you to use Ubuntu Terminal and run Ubuntu command line utilities including bash, ssh, git, apt and many more. Please note that Windows 10 S does not support running this app. To launch, use “ubuntu2004” on the command-line prompt (cmd.exe), or click on the Ubuntu…](https://apps.microsoft.com/store/detail/ubuntu-2004/9N6SVWS3RX71?hl=zh-cn&gl=CN)

[apps.microsoft.com](https://apps.microsoft.com/store/detail/ubuntu-2004/9N6SVWS3RX71?hl=zh-cn&gl=CN)

三、运行docker-compose
------------------

**1、在下面网址找到yaml文件**，打开下面\*\*[网址](https://www.espressosys.com/cape/docker-compose.yaml)**复制里面内容（见下）到txt文档另存为**docker-compose.yaml\*\*文件，然后复制到一个目录比如C盘根目录下的名称为123的文件夹，如果你

不太会用命令行可以直接复制到C:\\Windows\\System32，然后以管理员身份运行**PowerShell，这样就不用切换目录了☢**

[docker-compose.yaml](https://www.espressosys.com/cape/docker-compose.yaml)

[www.espressosys.com](https://www.espressosys.com/cape/docker-compose.yaml)

**2、首先打开docker，保持运行状态注意☢**

**3、打开PowerShell**，使用CD命令，切换到**docker-compose.yaml所在目录☢，比如我刚才设置名称为123**的文件夹

`cd C:/123`

运行以下命令：

`docker-compose pull`

`docker-compose up`

上面命令运行完成后看到下面如下图就说明成功了，docker界面同样多出来1个名称为123的容器（和你存储**docker-compose.yaml文件的文件夹名称是一样的**）

**4、打开浏览器（首选 Google Chrome）并转到**`localhost`**地址栏中，开始创建钱包；**

创建完成钱包后连接小狐狸，进行cape交互，目前是在Goerli测试网下，你需要一些测试币

。

---

*Originally published on [0xjingjing](https://paragraph.com/@0xjingjing-2/cape)*
