For SGX related issues you may want to check out https://github.com/inclavare-containers/inclavare-containers
Its basically ability to run protected containers in hardware-assisted Trusted Execution Environment (TEE).