Skip to content

Commit a504531

Browse files
committed
Docker build: expose new kernel sgx dev nodes
Signed-off-by: Haitao Huang <haitao.huang@linux.intel.com>
1 parent 816df5c commit a504531

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

docker/build/build_and_run_aesm_deb_docker.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ docker build --target aesm_deb --build-arg https_proxy=$https_proxy \
3535

3636
docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=rw aesmd-socket
3737

38-
# If you use the Legacy Launch Control driver, replace /dev/sgx/enclave with /dev/isgx, and remove
39-
# --device=/dev/sgx/provision
38+
# If you use the Legacy Launch Control driver, replace /dev/sgx_enclave with /dev/isgx, and remove
39+
# --device=/dev/sgx_provision
4040

41-
docker run --env http_proxy --env https_proxy --device=/dev/sgx/enclave --device=/dev/sgx/provision -v /dev/log:/dev/log -v aesmd-socket:/var/run/aesmd -it sgx_aesm_deb
41+
docker run --env http_proxy --env https_proxy --device=/dev/sgx_enclave --device=/dev/sgx_provision -v /dev/log:/dev/log -v aesmd-socket:/var/run/aesmd -it sgx_aesm_deb

docker/build/build_and_run_aesm_docker.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ docker build --target aesm --build-arg https_proxy=$https_proxy \
3535

3636
docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=rw aesmd-socket
3737

38-
# If you use the Legacy Launch Control driver, replace /dev/sgx/enclave with /dev/isgx, and remove
39-
# --device=/dev/sgx/provision
38+
# If you use the Legacy Launch Control driver, replace /dev/sgx_enclave with /dev/isgx, and remove
39+
# --device=/dev/sgx_provision
4040

41-
docker run --env http_proxy --env https_proxy --device=/dev/sgx/enclave --device=/dev/sgx/provision -v /dev/log:/dev/log -v aesmd-socket:/var/run/aesmd -it sgx_aesm
41+
docker run --env http_proxy --env https_proxy --device=/dev/sgx_enclave --device=/dev/sgx_provision -v /dev/log:/dev/log -v aesmd-socket:/var/run/aesmd -it sgx_aesm

docker/build/build_and_run_qgs_docker.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ docker build --target qgs --build-arg https_proxy=$https_proxy \
3535

3636
docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=rw qgs-socket
3737

38-
# If you use the Legacy Launch Control driver, replace /dev/sgx/enclave with /dev/isgx, and remove
39-
# --device=/dev/sgx/provision
38+
# If you use the Legacy Launch Control driver, replace /dev/sgx_enclave with /dev/isgx, and remove
39+
# --device=/dev/sgx_provision
4040

41-
docker run --device=/dev/sgx/enclave --device=/dev/sgx/provision -v /dev/log:/dev/log -v qgs-socket:/var/run/tdx-qgs/ -it --add-host=host.docker.internal:host-gateway tdx_qgs /opt/intel/tdx-qgs/qgs --no-daemon
41+
docker run --device=/dev/sgx_enclave --device=/dev/sgx_provision -v /dev/log:/dev/log -v qgs-socket:/var/run/tdx-qgs/ -it --add-host=host.docker.internal:host-gateway tdx_qgs /opt/intel/tdx-qgs/qgs --no-daemon

docker/build/build_and_run_sample_deb_docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ docker build --target sample_deb --build-arg https_proxy=$https_proxy \
3434
--build-arg http_proxy=$http_proxy -t sgx_sample_deb -f ./Dockerfile ../../
3535

3636
# Another container should expose AESM and its socket in aesmd-socket volume.
37-
# Replace /dev/sgx/enclave with /dev/isgx if you use the Legacy Launch Control driver
38-
docker run --env http_proxy --env https_proxy --device=/dev/sgx/enclave -v aesmd-socket:/var/run/aesmd -it sgx_sample_deb
37+
# Replace /dev/sgx_enclave with /dev/isgx if you use the Legacy Launch Control driver
38+
docker run --env http_proxy --env https_proxy --device=/dev/sgx_enclave -v aesmd-socket:/var/run/aesmd -it sgx_sample_deb

docker/build/build_and_run_sample_docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ docker build --target sample --build-arg https_proxy=$https_proxy \
3434
--build-arg http_proxy=$http_proxy -t sgx_sample -f ./Dockerfile ../../
3535

3636
# Another container should expose AESM and its socket in aesmd-socket volume.
37-
# Replace /dev/sgx/enclave with /dev/isgx if you use the Legacy Launch Control driver
38-
docker run --env http_proxy --env https_proxy --device=/dev/sgx/enclave -v aesmd-socket:/var/run/aesmd -it sgx_sample
37+
# Replace /dev/sgx_enclave with /dev/isgx if you use the Legacy Launch Control driver
38+
docker run --env http_proxy --env https_proxy --device=/dev/sgx_enclave -v aesmd-socket:/var/run/aesmd -it sgx_sample

0 commit comments

Comments
 (0)