Once after you download the puppetmaster, make sure your puppetmaster and puppet client are communicating to each other, either you place them in /etc/hosts file or you can have your DNS entries being registered.
fire up your docker :
docker run -it --name puppetmaster --hostname puppetmaster.example.com sunlnx/puppetmaster /bin/bash
Once after you are in puppetmaster, you need to start up service.
[root@puppetmaster ~]# service puppetmaster restart
Stopping puppetmaster: [ OK ]
Starting puppetmaster: [ OK ]
you can now write your manifests in /etc/puppet/manifests and run the puppet agents.
Puppetmaster servers are ready to write your manifests.