The Dockerfile for this image is available in the Puppet-in-Docker repository.
The PuppetDB container requires a working
puppet/puppetdb-postgres container or other suitably configured PostgreSQL database. With that in place, you can run PuppetDB like so:
docker run --link postgres:postgres --link puppet:puppet puppet/puppetdb
You can change configuration settings by mounting volumes containing configuration files or by using this image as a base image. For the defaults, see the Dockerfile and supporting folders.
For more details about PuppetDB, see the official documentation.
See the examples repository for fully worked examples, including how to run a full Puppet stack using Docker Compose.