linuxkit/pkg/tss
Avi Deitcher 76b519705b
Add alpine bcc tools (#4105)
* Update linuxkit/alpine

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* tools/alpine: Update to latest

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* tools: Update to the latest linuxkit/alpine

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* Update use of tools to latest

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* tests: Update packages to the latest linuxkit/alpine

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* Update use of test packages to latest

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* pkgs: Update packages to the latest linuxkit/alpine

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* Update package tags

Signed-off-by: Avi Deitcher <avi@deitcher.net>

---------

Signed-off-by: Avi Deitcher <avi@deitcher.net>
2025-02-17 11:12:49 +02:00
..
etc add tss image 2017-07-26 13:46:51 +03:00
src fix tss compilation with patches 2025-01-07 18:50:59 +02:00
build.yml move pkg config from Dockerfile to build.yml 2018-04-24 00:59:09 +02:00
Dockerfile Add alpine bcc tools (#4105) 2025-02-17 11:12:49 +02:00
README.md Update README to include privileged flag 2018-03-06 01:32:04 -06:00

LinuxKit tpm

Image to provide a tcsd daemon and tpm tools to support tpm, based on trousers and tpm-tools .

Usage

If you want to interact with a tpm chip, you need a tcsd daemon running to control it and provide a communication endpoint for all of your tpm commands.

This image provides both a tcsd daemon to run in a container, and the command line tpm-tools.

Daemon

To run a tcsd daemon - you must run exactly one on a tpm-enabled host to interact with the tpm - just start the container.

LinuxKit

In LinuxKit, add the following to your moby .yml:

services:
  - name: tcsd
    image: "secureapp/tss:<hash>"

The above will launch tcsd listening on localhost only.

Docker

In regular docker or other container environment, start the container in the background. Be sure to map /dev:/dev and expose port 30003, and run with the privileged flag set to true. The privileged flag is required to allow the container access to device files on the host.

docker run -d -v /dev:/dev --privileged=true -p 30003:30003 linuxkit/tss:{TAG}

CLI Tools

To run the CLI tools, just run them:

docker run -it --privileged=true --rm linuxkit/tss:{TAG} tpm_nvread