1
0
mirror of https://github.com/containers/buildah.git synced 2026-02-05 18:44:58 +01:00
Files
buildah/pkg/cli/exec_codes.go
Daniel J Walsh 2f671a26b2 Return exit code from failed containers
Buildah run was exiting with the correct exit code, when a container
failed.  Buildah bud was not, so this should fix this.

Also switched to the proper exit codes when containers fail.  When
Buildah fails to execute it will exit with a 125 exit code like
Podman does.  If a command fails to execute inside of a container
we will exit with a 126. Currently we do not support the 127 for
exiting when the command does not exist.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-20 11:24:52 -04:00

527 B