Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

How do I automatically build a docker image configured by puppet?

$
0
0
Hello Everyone, How do I automatically build a docker image configured by Puppet? I'm using puppet 3.8. Let me explain. I want to automatically build docker containers configured by Puppet. I have already built the Dockerfile. It has > FROM centos:6>> RUN install-puppet-agent>> RUN talk-to-puppet-mothership So, when I run `docker build -t latest --no-cache -f ./Dockerfile .`, it runs fine the first time. My puppet server is configured with `autosign = true`. Here's what happens, it downloads centos:6 and it instantiates a container with some hostname. The hostname is always the same. The problem arises when I have to run the docker build a second time. Suddenly, I have a container with the same hostname, but its fingerprint doesn't match so the puppet run fails. How can I do this? Am I approaching this wrong? My first time with Docker.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>