Puppet agent exit 2 causes failure in docker build

asked 2016-07-01 12:26:47 -0600

haloflightleader gravatar image


This is probably more of a question for Docker (I asked in their forums too), but I will ask here too.


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.

edit retag flag offensive close merge delete