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, 2019 in Puppet by fuad
116 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, 2019 by Sirajul
• 55,340 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, 2019 in Puppet by Sirajul
• 55,340 points
83 views
0 votes
1 answer

Docker with Puppet: Scaling a docker service

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

answered Aug 16, 2019 in Puppet by Sirajul
• 55,340 points
39 views
0 votes
0 answers

Puppet: Cannot start php service that is defined in a puppet manifest.

I have written a puppet manifest to ...READ MORE

Sep 18, 2019 in Puppet by Karan
• 11,170 points
166 views
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
• 57,550 points
654 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, 2019 in Puppet by Sirajul
• 55,340 points
95 views
0 votes
0 answers