docker 이미지 검색
$ sudo docker search tpm2
https://github.com/starlab-io/docker-tpm2-emulator
내려받기
$ docker pull starlabio/tpm2-emulator
Using default tag: latest
latest: Pulling from starlabio/tpm2-emulator
eeacba527962: Pull complete
25405ed4f245: Pull complete
22752cd61bd5: Pull complete
:
Digest: sha256:1dc4ea06a8061225251461dfa9ce535eb4ba682276ba6aca00185831b35e97cb
Status: Downloaded newer image for starlabio/tpm2-emulator:latest
docker.io/starlabio/tpm2-emulator:latest
도커 실행
$ docker run -it starlabio/tpm2-emulator
root@219e4ab48689:/source# ls
ibmtpm tpm2-tools-2.1.0 tpm2-tss-1.2.0
Running the emulator
$ tpm_server -rm &
If you want to start with a fresh state run it with -rm as an option.
Before any TPM command will work you must send it a startup command, with a real TPM it is apparently the job of the BIOS to do this.
$ tpm2_startup --clear
tpm2-software-container
https://github.com/tpm2-software/tpm2-software-container
Auto builds
https://github.com/orgs/tpm2-software/packages
$ docker run -it --rm ghcr.io/tpm2-software/ubuntu-22.04 /bin/bash