Puppet Docker What is the equivalent of docker rm in Puppet code

0 votes
I was looking to remove a few images. How can i achieve this using puppet code?
Aug 13, 2019 in Puppet by Namik
• 1,230 points
519 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

To remove an image, add the following code to the manifest file:

docker::image { 'base':
  ensure => 'absent'
}
docker::image { 'ubuntu':
  ensure    => 'absent',
  image_tag => 'precise'
}

This will act as docker rm command.

answered Aug 13, 2019 by Sirajul
• 59,230 points

Related Questions In Puppet

0 votes
1 answer

what is the role of Facter in puppet?

Facter is a library that reports and ...READ MORE

answered Jul 25, 2019 in Puppet by Sirajul
• 59,230 points
937 views
0 votes
1 answer

What is the use of etckeeper-commit-post and etckeeper-commit-pre on Puppet Agent?

Hey @Pallavi,  etckeeper-commit-post: In this configuration file you can ...READ MORE

answered Feb 15, 2019 in Puppet by Simran
933 views
0 votes
1 answer

what are the different plugins in modules of puppet?

Puppet supports several kinds of plug-ins: Custom facts ...READ MORE

answered Jul 25, 2019 in Puppet by Sirajul
• 59,230 points
519 views
0 votes
1 answer

what is the usage of Puppet apply command?

Puppet apply- Applies a standalone Puppet manifest to ...READ MORE

answered Jul 30, 2019 in Puppet by Sirajul
• 59,230 points
2,095 views
0 votes
1 answer
0 votes
1 answer

What is the maximum limit of puppet agents that a Puppet server can handle?

 If scaling is a issue, you can ...READ MORE

answered Aug 29, 2019 in Puppet by Sirajul
• 59,230 points
809 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,090 points
2,426 views
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