Dockerfiles for linux-sgx.
Provided versions:
SGX version | OS | SDK | PSW | SGX SSL |
---|---|---|---|---|
2.19 | Ubuntu 22.04 Debian 10 |
✔️ | ✔️ | ✔️ ❌ |
2.18 | Ubuntu 20.04 Ubuntu 22.04 |
✔️ | ✔️ | ✔️ |
2.17.1 | Ubuntu 20.04 |
✔️ | ✔️ | ✔️ |
2.16 | Ubuntu 20.04 |
✔️ | ✔️ | ❌ |
2.15.1 | Ubuntu 20.04 |
✔️ | ✔️ | ❌ |
2.14 | Ubuntu 20.04 |
✔️ | ✔️ | ❌ |
2.13.3 | Ubuntu 18.04 Ubuntu 20.04 |
✔️ | ✔️ | ❌ |
Please refer to the official repository, https://github.com/intel/linux-sgx, for other versions.
Images are available on under ghcr.io/initc3/linux-sgx.
FROM ghcr.io/initc3/sgx:2.19-buster
# ...
There's a dedicated image to run the sgx aesm service in a container.
It can be used with docker compose. For example:
version: '3.9'
services:
aesmd:
image: ghcr.io/initc3/sgx-aesm:2.19-buster
volumes:
- aesmd-socket:/var/run/aesmd
devices:
- /dev/sgx_enclave
- /dev/sgx_provision
sample-enclave:
image: sample-enclave
depends_on:
aesmd:
condition: service_started
volumes:
- aesmd-socket:/var/run/aesmd
devices:
- /dev/sgx_enclave
volumes:
aesmd-socket:
driver: local
driver_opts:
type: "tmpfs"
device: "tmpfs"
o: "rw"
Complete example under examples/sample-enclave.
The following versions are available on DockerHub at https://hub.docker.com/r/initc3/linux-sgx.
SGX version | OS | SDK | PSW | SGX SSL |
---|---|---|---|---|
2.12 | Ubuntu 18.04 | ✔️ | ✔️ | ❌ |
2.11 | Ubuntu 18.04 | ✔️ | ✔️ | ❌ |
2.9.1 | Ubuntu 18.04 | ✔️ | ✔️ | ❌ |
2.7.1 | Ubuntu 18.04 | ✔️ | ✔️ | ❌ |
2.6 | Ubuntu 16.04 Ubuntu 18.04 |
✔️ | ✔️ | ❌ |
2.3.1 | Ubuntu 16.04 Ubuntu 18.04 |
✔️ ✔️ |
❌ ✔️ |
❌ |
2.2 | Ubuntu 16.04 | ✔️ | ❌ | ❌ |
2.1.3 | Ubuntu 16.04 | ✔️ | ❌ | ❌ |