messense 2021-05-23 12:07:41 +08:00 committed by Zongmin.Gu
parent 6d37dd2d90
commit 65271ce190

@ -202,10 +202,17 @@ Step 1-3 are to be done on the host OS (Linux):
2. Install [enable_rdfsbase kernel module](https://github.com/occlum/enable_rdfsbase), which enables Occlum to use `rdfsbase`-family instructions in enclaves. 2. Install [enable_rdfsbase kernel module](https://github.com/occlum/enable_rdfsbase), which enables Occlum to use `rdfsbase`-family instructions in enclaves.
3. Run the Occlum Docker container, which has Occlum and its demos preinstalled: 3. Run the Occlum Docker container, which has Occlum and its demos preinstalled:
```
For old IAS driver (not DCAP aware):
```bash
docker run -it --device /dev/isgx occlum/occlum:[version]-ubuntu18.04 docker run -it --device /dev/isgx occlum/occlum:[version]-ubuntu18.04
``` ```
For new DCAP driver:
```bash
docker run -it --device /dev/sgx/enclave occlum/occlum:[version]-ubuntu18.04
```
Step 4-5 are to be done on the guest OS running inside the Docker container: Step 4-5 are to be done on the guest OS running inside the Docker container:
4. (Optional) Try the sample code of Intel SGX SDK to make sure that SGX is working 4. (Optional) Try the sample code of Intel SGX SDK to make sure that SGX is working