docker run --name tpmlab -w ~/lab -it -d --platform=linux/amd64 -e TPM2TOOLS_TCTI=mssim:host=localhost,port=2321 tpmdev/tpm2-runtime:latest
Note: Windows users should use -w "/mnt/host/c/Users/WHEREVER/YOUR/LAB/FOLDER" to specify a working folder for docker.
docker attach tpmlab
tpm_server > tpm.log &
tpm2_startup -c
Generate eight random bytes from the TPM to test that your laboratory environment is working
tpm2_getrandom 8 > randombytes
xxd randombytes
Use the docker playground online
Login Requires a free-of-charge account from hub.docker.com
OST2 ready-to-use docker image
These instructions are optional. We recommend using the OST2 TPM docker environment for this course.
- Windows TBS restricts access to some TPM functionalities
- MacOS does not have a TPM
- Need to manually install the tpm2-tss TPM2 library stack
- Need to manually install the tpm2-tools
- May require to configure user permissions for /dev/tpm0