O'Reilly logo

Puppet 4.10 Beginner's Guide - Second Edition by John Arundel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing Docker with Puppet

Puppet can certainly install and manage the Docker service for you, just as it can any other software, but it can also do a lot more. It can download and run Docker images, build images from Dockerfiles, mount files and directories on the container, and manage Docker volumes and networks. We'll see how to do all these things in this chapter.

Installing Docker

Before we do anything else, we'll need to install Docker on our node (using Puppet, of course). The puppetlabs/docker_platform module is ideal for this.

  1. If you've already installed the r10k module management tool, as shown in Chapter 7, Mastering modules, you're all set. Otherwise, run the following command to install r10k:
    sudo gem install r10k
    
  2. Run the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required