Puppet+Docker: In context of running a container, what all commands does puppetlabs/docker module support?

0 votes
4 days ago in Puppet by Karan
• 1,170 points
5 views

1 answer to this question.

0 votes

Within the context of a running container, the docker module supports arbitrary commands such as:

docker::exec { 'cron_allow_root':
  detach       => true,
  container    => 'mycontainer',
  command      => '/bin/echo root >> /usr/lib/cron/cron.allow',
  onlyif       => 'running',
  tty          => true,
  env          => ['FOO=BAR', 'FOO2=BAR2'],
  unless       => 'grep root /usr/lib/cron/cron.allow 2>/dev/null',
  refreshonly  => true,
}
answered 4 days ago by Sirajul
• 16,880 points

Related Questions In Puppet

0 votes
1 answer

Is it possible to install puppet agent in a docker container on linux?

Hey @Janice, this is pretty simple. Create ...READ MORE

answered Mar 12 in Puppet by Jason
80 views
0 votes
1 answer

Does Puppetlabs/docker module support Docker plugins?

The puppetlabs/docker module supports the installation of ...READ MORE

answered 4 days ago in Puppet by Sirajul
• 16,880 points
7 views
0 votes
1 answer

Which version of Ruby does puppet support?

Hey @Raj, certain versions of Ruby are ...READ MORE

answered Feb 15 in Puppet by Uma
63 views
0 votes
1 answer
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,200 points
128 views
0 votes
1 answer

Does puppet help when all my servers are one of a kind?

Indeed, Puppet can help. All servers are in ...READ MORE

answered Jul 30 in Puppet by Sirajul
• 16,880 points
16 views
0 votes
0 answers

Puppet+Docker: What is the equivalent of docker rm in Puppet code?

I was looking to remove a few ...READ MORE

5 days ago in Puppet by Namik
• 1,200 points
7 views