Deploying Docker Containers with Puppet
Puppet can also be used to administer Docker containers.
In this page you will find some examples. All the examples use the docker
resource type, supported by the Puppet company.
Contents
How to Install and Upgrade Docker with Puppet
Installing or upgrading Docker is simple:
class { 'docker': use_upstream_package_source => false, version => '17.09.0~ce-0~debian', }
In this example we are using our system's repositories instead of Docker official repositories, and we are specifying the desired version. To upgrade Docker later, all we need to do is to modify the version number. While specifying a version is not mandatory, it is a good idea because it makes our manifest more reproducible.
Check the docker
resource type documentation to find out how to use more features: for example you can use Docker Enterprise Edition, or bind the Docker daemon to a TCP port.
How to Deploy a Container with Puppet
References
Content initially contributed by Vettabase Ltd.