<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SGX deosnt work inside Docker in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-deosnt-work-inside-Docker/m-p/1693391#M6397</link>
    <description>&lt;P&gt;Hi, I'm trying to run enclave inside the Docker container using instruction from readme:&lt;BR /&gt;&lt;A href="https://github.com/intel/linux-sgx/blob/main/docker/build/README.md" target="_blank" rel="noopener"&gt;https://github.com/intel/linux-sgx/blob/main/docker/build/README.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Versions:&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;OS: Ubuntu 22.04.5 LTS
Kernel: 5.15.0-140-generic
Docker version 28.2.1, build 879ac3f
Docker Compose version v2.36.2&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Everything works fine outside the Docker, enclaves generate quotes successfully:&lt;/STRONG&gt;&amp;nbsp;software is installed, platform is registered, PCCS servece works. But Docker doesn't.&lt;/P&gt;&lt;P&gt;I cloned linux-sgx repo, branch main,&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;commit 7385e10ce1106215d15f874a024ca224c7417eea&lt;/LI-CODE&gt;&lt;P&gt;Did&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;make preparation
cd docker/build/
nano build_compose_run.sh #(replaced "docker-compose" with "docker compose" in the bottom line)
./build_compose_run.sh&lt;/LI-CODE&gt;&lt;P&gt;It outputs&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;aesmd-socket
TRAC[0000] Docker Desktop integration not enabled
WARN[0000] /home/sgx_machine/linux-sgx/docker/build/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 3/3
✔ Network build_default Created 0.1s
✔ Container build-aesm-1 Created 0.0s
✔ Container build-sample-1 Created 0.0s
Attaching to aesm-1, sample-1
aesm-1 | The path of system bundle: System Bundle
aesm-1 | ecdsa_quote_service_bundle_name:2.0.0
aesm-1 | epid_quote_service_bundle_name:2.0.0
aesm-1 | le_launch_service_bundle_name:2.0.0
aesm-1 | linux_network_service_bundle_name:2.0.0
aesm-1 | pce_service_bundle_name:2.0.0
aesm-1 | quote_ex_service_bundle_name:2.0.0
aesm-1 | system_bundle:4.0.0
aesm-1 | aesm_service[7]: [get_qpl_handle ../qe_logic.cpp:294] Cannot open Quote Provider Library libdcap_quoteprov.so.1 and libdcap_quoteprov.so
aesm-1 |
aesm-1 | aesm_service[7]: The server sock is 0x55dfeaed3d80
sample-1 | [get_driver_type edmm_utility.cpp:116] Failed to open Intel SGX device.
sample-1 | [get_driver_type /linux-sgx/psw/urts/linux/edmm_utility.cpp:116] Failed to open Intel SGX device.
sample-1 | Info: Please make sure SGX module is enabled in the BIOS, and install SGX driver afterwards.
sample-1 | Error: Invalid SGX device.
sample-1 | Enter a character before exit ...
DEBU[0005] otel error error="&amp;lt;nil&amp;gt;"&lt;/LI-CODE&gt;&lt;P&gt;Is it a bug? I used main branch and there are literally two lines of code, there is nothing I could do wrong.&lt;/P&gt;</description>
    <pubDate>Thu, 29 May 2025 21:06:25 GMT</pubDate>
    <dc:creator>alche</dc:creator>
    <dc:date>2025-05-29T21:06:25Z</dc:date>
    <item>
      <title>SGX deosnt work inside Docker</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-deosnt-work-inside-Docker/m-p/1693391#M6397</link>
      <description>&lt;P&gt;Hi, I'm trying to run enclave inside the Docker container using instruction from readme:&lt;BR /&gt;&lt;A href="https://github.com/intel/linux-sgx/blob/main/docker/build/README.md" target="_blank" rel="noopener"&gt;https://github.com/intel/linux-sgx/blob/main/docker/build/README.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Versions:&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;OS: Ubuntu 22.04.5 LTS
Kernel: 5.15.0-140-generic
Docker version 28.2.1, build 879ac3f
Docker Compose version v2.36.2&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Everything works fine outside the Docker, enclaves generate quotes successfully:&lt;/STRONG&gt;&amp;nbsp;software is installed, platform is registered, PCCS servece works. But Docker doesn't.&lt;/P&gt;&lt;P&gt;I cloned linux-sgx repo, branch main,&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;commit 7385e10ce1106215d15f874a024ca224c7417eea&lt;/LI-CODE&gt;&lt;P&gt;Did&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;make preparation
cd docker/build/
nano build_compose_run.sh #(replaced "docker-compose" with "docker compose" in the bottom line)
./build_compose_run.sh&lt;/LI-CODE&gt;&lt;P&gt;It outputs&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;aesmd-socket
TRAC[0000] Docker Desktop integration not enabled
WARN[0000] /home/sgx_machine/linux-sgx/docker/build/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 3/3
✔ Network build_default Created 0.1s
✔ Container build-aesm-1 Created 0.0s
✔ Container build-sample-1 Created 0.0s
Attaching to aesm-1, sample-1
aesm-1 | The path of system bundle: System Bundle
aesm-1 | ecdsa_quote_service_bundle_name:2.0.0
aesm-1 | epid_quote_service_bundle_name:2.0.0
aesm-1 | le_launch_service_bundle_name:2.0.0
aesm-1 | linux_network_service_bundle_name:2.0.0
aesm-1 | pce_service_bundle_name:2.0.0
aesm-1 | quote_ex_service_bundle_name:2.0.0
aesm-1 | system_bundle:4.0.0
aesm-1 | aesm_service[7]: [get_qpl_handle ../qe_logic.cpp:294] Cannot open Quote Provider Library libdcap_quoteprov.so.1 and libdcap_quoteprov.so
aesm-1 |
aesm-1 | aesm_service[7]: The server sock is 0x55dfeaed3d80
sample-1 | [get_driver_type edmm_utility.cpp:116] Failed to open Intel SGX device.
sample-1 | [get_driver_type /linux-sgx/psw/urts/linux/edmm_utility.cpp:116] Failed to open Intel SGX device.
sample-1 | Info: Please make sure SGX module is enabled in the BIOS, and install SGX driver afterwards.
sample-1 | Error: Invalid SGX device.
sample-1 | Enter a character before exit ...
DEBU[0005] otel error error="&amp;lt;nil&amp;gt;"&lt;/LI-CODE&gt;&lt;P&gt;Is it a bug? I used main branch and there are literally two lines of code, there is nothing I could do wrong.&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 21:06:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-deosnt-work-inside-Docker/m-p/1693391#M6397</guid>
      <dc:creator>alche</dc:creator>
      <dc:date>2025-05-29T21:06:25Z</dc:date>
    </item>
  </channel>
</rss>

