From 65271ce190195b2c2c1d514320ab7d1f45a525ea Mon Sep 17 00:00:00 2001 From: messense Date: Sun, 23 May 2021 12:07:41 +0800 Subject: [PATCH] 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 --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b1ba89e6..3064c0a0 100644 --- a/README.md +++ b/README.md @@ -202,9 +202,16 @@ 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: