Add docker example for SGX DCAP driver
https://community.intel.com/t5/Intel-Software-Guard-Extensions/Intel-SGX-Linux-Driver-Cheat-Sheet-dev-sgx-vs-dev-isgx/td-p/1184174
This commit is contained in:
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.
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
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:
|
||||
|
||||
4. (Optional) Try the sample code of Intel SGX SDK to make sure that SGX is working
|
||||
|
Loading…
Reference in New Issue
Block a user