ad2f3bc6479129796504f8e80334b59004c4812e
[aaf/sshsm.git] / bin / abrmdcontainer / README.md
1 ### Building Docker Images
2
3 ```
4 $ docker build -t <image name> -f dockerfile .
5 ```
6
7 ### Running ABRMD Container
8
9 ```
10 $ docker run -d --privileged -v /tmp/run/dbus:/var/run/dbus --name <container name> <image name>
11 ```
12
13 ### Running Tools Container
14 This command will drop you into the tools container with everything setup appropriately:
15 ```
16 # Runs without any privileges.
17 # Requires that the dbus be mounted from the same host folder
18 # This is to enable communication between the tools and ABRMD
19 $ docker run -v /tmp/run/dbus:/var/run/dbus --name <container name> -it --entrypoint /bin/bash <image name>
20 ```
21
22 ##### Sanity Check
23 Run the following command in the tools container to see if everything is setup correctly:
24
25 ```
26 tpm2_listpcrs
27 ```