First, setup linux SGX driver on your host. You can either follow the instructions on the official repository or use the following script (Ubuntu only):
curl -fssl https://raw.githubusercontent.com/SconeDocs/SH/master/install_sgx_driver.sh | bashThen, stop the aesmd service:
sudo service aesmd stopAfterwards you can build, then launch the proxy using the following command:
docker run --device /dev/isgx --device /dev/mei0 -p 8081:8081 proxysgx "./app" [...]sudo service aesmd stop
sudo modprobe -r -f isgx
sudo rmmod -f isgx
sudo rm -rf /dev/isgxAnd then reinstall
THE ORDER OF LINKED LIBRARIES MATTERS... >_<