/docker-sgx

A Docker image with Intel SGX support.

Primary LanguageDockerfile

A Docker image with Intel SGX SDK and PSW (platform software, i.e., runtime). You can use it as a base Docker image for your apps which use Intel SGX.

Intel SGX kernel module has to be loaded on the host and you have to provide it to the container when you run it:

docker run -d --device /dev/isgx --device /dev/mei0 --name test-sgx tozd/sgx:ubuntu-xenial
docker exec -t -i test-sgx bash

SDK is installed under /opt/intel/sgxsdk. You should do:

source /opt/intel/sgxsdk/environment

in your bash script to load the SDK environment.