Puppet+Docker: Restarting docker service via puppet manifest

0 votes
I want to restart the docker service using puppet, I am using puppetlabs/docker module to work with docker. I need to restart the docker service as i have copied some files /var/lib/docker.  How can i do it?
Aug 13 in Puppet by fuad
15 views

1 answer to this question.

0 votes

Try adding this:

service { 'docker':
  ensure    => running,
  subscribe => File['resource where you are copying some data to /var/lib/docker'],
}
answered Aug 13 by Sirajul
• 31,180 points

Related Questions In Puppet

0 votes
1 answer

Puppet+Docker: How to Update/Remove a docker service?

Update a docker service: To update the service, add ...READ MORE

answered Aug 14 in Puppet by Sirajul
• 31,180 points
35 views
0 votes
1 answer

Docker with Puppet: Scaling a docker service

To scale a service, add the following ...READ MORE

answered Aug 16 in Puppet by Sirajul
• 31,180 points
16 views
0 votes
0 answers
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,900 points
189 views
0 votes
1 answer

Puppet+Docker:Creating a Docker service using a Puppet manifest

Docker services are used to create distributed ...READ MORE

answered Aug 14 in Puppet by Sirajul
• 31,180 points
24 views
0 votes
0 answers