Puppet in Docker: Running puppet commands inside a docker container.

0 votes
How do i know what all packages (pertaining to puppet) are installed on a docker image? Also what's the process to find out the packages that are installed on the host rather than the docker container?
Aug 19 in Puppet by Sam
• 4,320 points
20 views

1 answer to this question.

0 votes

You can use Puppet commands, such as resource

The following command lists all of the packages installed on the image.

docker run puppet/puppet-agent-ubuntu resource package --param provider

To find out about the packages installed on the host, rather than in the container, mount in various folder from the host like so.

docker run --privileged -v /tmp:/tmp --net host -v /etc:/etc -v /var:/var -v /usr:/usr -v lib64:/lib64 puppet/puppet-agent-ubuntu resource package

This will do!

answered Aug 19 by Sirajul
• 39,540 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
181 views
0 votes
1 answer

Puppet in Docker : How to mount Puppet on a CentOS container?

Run the following command: docker run --volumes-from=puppet-agent centos ...READ MORE

answered Aug 19 in Puppet by Sirajul
• 39,540 points
21 views
0 votes
1 answer

Puppet in Docker: Can a docker container use Puppet only at Run-time?

Docker provides a solution to this problem ...READ MORE

answered Aug 19 in Puppet by Sirajul
• 39,540 points
36 views
0 votes
1 answer

Puppet in Docker: Error while running the Puppet container

Try to uncomment the following lines in the definition ...READ MORE

answered Aug 19 in Puppet by Sirajul
• 39,540 points
24 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,940 points
232 views
0 votes
1 answer