Base image for applications using the official Intel SGX SDK
1.9K
Instructions:
/usr/src/appaesmd and jhid must be stoppedExample using SampleEnclave shipped with the official SDK
Dockerfile
FROM ffosilva/sgx:sgx_2.12
# Install dependencies
RUN apt-get update && \
apt-get install -y g++
# COPY . ./
RUN cp -rf /opt/intel/sgxsdk/SampleCode/SampleEnclave/* .
RUN make SGX_DEBUG=0 SGX_PRERELEASE=1 SGX_MODE=HW
CMD ["./app"]
Building image
$ docker build -t sampleenclave .
Running in container
If your system uses Out-Of-Tree SGX driver (/dev/isgx is available), you should run the application using the following command:
$ docker run --device /dev/isgx sampleenclave
If your system uses the In-Kernel SGX driver (/dev/sgx is available), you should run the application using the following command:
$ docker run --device /dev/sgx sampleenclave
Content type
Image
Digest
Size
88.3 MB
Last updated
almost 6 years ago
docker pull ffosilva/sgx