You could connect any agents to the Puppet infrastructure launched above however as an illustration in this context, launch a few ephemeral puppet agents in Docker containers.
Note that Docker compose automatically creates a default network which we need to connect our containers to in order for them to find the Puppet Server.
Let's run up a few alpine agents. Run the following command a few times.
docker run --net compose_default puppet/puppet-agent-alpine
docker run --net compose_default puppet/puppet-agent-ubuntu