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.
↧