Giter Site home page Giter Site logo

docker-sgx's Introduction

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.

docker-sgx's People

Contributors

dzobbe avatar kostko avatar mitar avatar roronoaz91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-sgx's Issues

When re-installing Intel SGX SDK/PSW, it occurs "Error: Invalid SGX device."

Hi, I recently made a try of your docker-sgx container,
First, I follow these instrucions to take a try of executing SGX application in Docker:
docker run -d --device /dev/isgx --device /dev/mei0 --name test-sgx tozd/sgx:ubuntu-xenial docker exec -t -i test-sgx bash
I enter /opt/intel/sgxsdk/SampleCode/SampleEnclave:
Then, executemake ./app, it works well.
Second, I try to re-install Intel SGX SDK, the intall path is still the '/opt/intel/'
I then re-enter the /opt/intel/sgxsdk/SamleCode/SampleEnclave: do 'make' , next, './app'.
But after re-installing, I cannot execute the ./app applicaiton, it seemly cannot find the 'Intel SGX Driver device', the error information as follows:

`root@3fc7df41ba7d:/opt/intel/sgxsdk/SampleCode/SampleEnclave# ./app
Info: Please make sure SGX module is enabled in the BIOS, and install SGX driver afterwards.
Error: Invalid SGX device.

Enter a character before exit ...

`
Could you please give some advice? thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.