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

Puppet agent exit 2 causes failure in docker build

$
0
0
Hello, This is probably more of a question for Docker (I asked in their forums too), but I will ask here too. https://forums.docker.com/t/how-to-automatically-build-a-container-configured-by-puppet/17192 My Dockerfile looks like this: > FROM centos:6>> RUN install-and-configure-puppet-agent>> RUN puppet agent -t When puppet agent finishes, it exits with a 2. Docker build dislikes this and considers this a failed build. What can I do in this situation? Can I make that RUN line accept a range of acceptable exit codes? Is there another elegant way of handling this? Thank you.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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