Hi Everyone,
I’m trying to automatically build a docker container configured by Puppet, but it fails because puppet agent exits with a 2.
docker build -t latest --no-cache -f ./Dockerfile .
The Dockerfile looks like this:
FROM centos:6 RUN install-and-configure-puppet-agent RUN puppet agent -t
The build fails even though every thing is green because puppet agent exited with a return code of 2. It appears RUN accepts only an exit code of 0.
What solutions are available to me in this instance? Can I make RUN accept a range of return codes?
P