This is a Git repository for Intel SGX applications using Docker Containers. The Intel(R) Software Guard Extensions (Intel(R) SGX) is an Intel technology for application developers seeking to protect select code and data from disclosure or modification.
The Linux SGX software stack is comprised of the SGX driver, the SGX SDK, and the SGX Platform Software. The SGX SDK and SGX PSW are hosted in the linux-sgx project.
The linux-sgx-driver project hosts the out-of-tree driver for the Linux SGX software stack, which will be used until the driver upstreaming process is complete.
1 - Download and run the Install-SGX-host.sh
:
$ git clone https://github.com/aminueza/sgx-docker.git
$ cd sgx-docker
$ chmod +x Install-SGX-host.sh
$ ./Install-SGX-host.sh
$ git clone https://github.com/aminueza/sgx-docker.git
2 - Build a new image:
$ docker build -t <image name> <destination-dir>
i.e: "docker build -t app-sgx ."
3 - Run a new image:
$ docker run --device=/dev/isgx -it <image name>
i.e: "docker run --device=/dev/isgx -it app-sgx"
*or start an interactive bash session:
$ docker run --device=/dev/isgx -it <image name> /bin/bash
1 - Download a docker image:
$ docker pull aminueza/docker-sgx