Puppet agent exit 2 causes failure in docker build
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:
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.