redhat-et / edge-security-demo

Apache License 2.0
2 stars 6 forks source link

Dockerfile for Keylime Deployment with Emulator #6

Closed lukehinds closed 4 years ago

lukehinds commented 4 years ago

This needs to run privileged as we are hacking in the host systemd to run dbus (tpm2-abrmd)

docker build -t et-demo .  
container_id=$(mktemp)
docker run --detach --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro et-demo > ${container_id} 
docker exec -u 0 -it --tty "$(cat ${container_id})" /bin/bash