builder/docker: command output and exit codes work

/cc @mwhooker - CCing you on this because it is also ridiculous. See the
big comments