Skip to content

Repository files navigation

docker linux-sgx

Dockerfiles for linux-sgx.

Provided versions:

SGX versionOSSDKPSWSGX 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.

Usage

FROM ghcr.io/initc3/sgx:2.19-buster
# ...

sgx aesm service

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-bustervolumes:
- aesmd-socket:/var/run/aesmddevices:
- /dev/sgx_enclave
- /dev/sgx_provisionsample-enclave:
image: sample-enclavedepends_on:
aesmd:
condition: service_startedvolumes:
- aesmd-socket:/var/run/aesmddevices:
- /dev/sgx_enclavevolumes:
aesmd-socket:
driver: localdriver_opts:
type: "tmpfs"device: "tmpfs"o: "rw"

Complete example under examples/sample-enclave.

Older versions

The following versions are available on DockerHub at https://hub.docker.com/r/initc3/linux-sgx.

SGX versionOSSDKPSWSGX SSL
2.12Ubuntu 18.04✔️✔️
2.11Ubuntu 18.04✔️✔️
2.9.1Ubuntu 18.04✔️✔️
2.7.1Ubuntu 18.04✔️✔️
2.6
Ubuntu 16.04

Ubuntu 18.04
✔️✔️
2.3.1
Ubuntu 16.04

Ubuntu 18.04

✔️

✔️



✔️
2.2Ubuntu 16.04✔️
2.1.3Ubuntu 16.04✔️