Puppet in Docker: Can i run puppet in docker on windows?

0 votes
Can i run linux docker containers having puppet on windows? How's this possible?
Aug 20 in Puppet by vicky
26 views

1 answer to this question.

0 votes

With the release of the recent Docker for windows beta, it's possible to run Linux docker containers, including Puppet-in-Docker, on Windows. 

This isn't the same as the native Windows container support coming in Server 2016 but is still useful for local development purposes. 

  • To run Puppet in Docker on windows you'll first need to sign up for the Docker beta and install it on your Windows machine.

  • With docker running, open up a PowerShell prompt and create a docker network:

docker network create puppet
  • We can then run a copy of Puppet Server. The standalone part refers to the fact this image does not automatically connect to PuppetDB. In other cases you may prefer the puppet/puppetserver image.

docker run --net puppet --name puppet --hostname puppet puppet/puppetserver-standalone
  • The container should boot and once it is running, run a simple puppet agent in another container. 

  • Open up a second PowerShell window and run:

docker run --net puppet puppet/puppet-agent-ubuntu

For a detailed understanding refer to: https://github.com/puppetlabs/puppet-in-docker-examples/tree/master/developing-in-docker-on-windows

answered Aug 20 by Sirajul
• 39,540 points

Related Questions In Puppet

0 votes
1 answer

Can I install puppet on windows?

Hey Neha, well, you cannot have puppet ...READ MORE

answered Feb 27 in Puppet by Anvit
43 views
0 votes
1 answer

Puppet in Docker : How do i run my dockerized puppet container periodically?

Instead of running a Dockerized puppet container onetime, ...READ MORE

answered Aug 19 in Puppet by Sirajul
• 39,540 points
42 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
38 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,940 points
235 views