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
1,025 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
• 59,230 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
• 59,230 points
747 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
• 59,230 points
500 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
• 19,610 points
978 views
+2 votes
1 answer
+2 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
• 58,020 points
2,714 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
• 59,230 points
920 views
0 votes
0 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP