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 in Puppet by Namik
• 1,210 points
16 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 by Sirajul
• 40,980 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 in Puppet by Sirajul
• 40,980 points
56 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 in Puppet by Simran
110 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 in Puppet by Sirajul
• 40,980 points
30 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 in Puppet by Sirajul
• 40,980 points
36 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 in Puppet by Sirajul
• 40,980 points
22 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
• 56,960 points
252 views