puppet/puppet-agent

By puppet

Updated over 2 years ago

Puppet Agent as a Docker Image.

Image

1M+

This image is a clone of puppet-agent-ubuntu

The Dockerfile for this image is available in the puppet-agent repository under the 'docker/puppet-agent-ubuntu' directory.

The simplest way of testing the puppet/puppet-agent-ubuntu image is to run it without any arguments.

docker run --link puppet:puppet puppet/puppet-agent-ubuntu

This will connect to a Puppet Server at https://puppet and try to download a catalogue. It will also provide verbose output plus a summary of anything that changed. Note that this is of limited use outside testing, in that this code changes the running container, which then exits.

Any additional arguments are passed straight to Puppet, so you can run any arbitrary Puppet command. For example, getting Help information is as simple as this:

docker run --link puppet:puppet puppet/puppet-agent-ubuntu help

If you want to manage the host using Puppet in the image, you need to mount folders from the host, as well as connect to the host network. For instance, on CoreOS you would do this:

docker run --rm --privileged --hostname agent -v /tmp:/tmp -v /etc:/etc -v /var:/var -v /usr:/usr -v /lib64:/lib64 --link puppet:puppet puppet/puppet-agent-ubuntu

See the pupperware repository for how to run a full Puppet stack using Docker Compose.

Docker Pull Command

docker pull puppet/puppet-agent