You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
INFO[0005] RUN exit 1
INFO[0005] cmd: /bin/sh
INFO[0005] args: [-c exit 1]
Error: error building image: error building stage: waiting for process to exit: exit status 1
Usage:
executor [flags]
Flags:
--azure-container-registry-config string Path to the file containing Azure container registry configuration information.
--build-arg multi-arg type This flag allows you to pass in ARG values at build time. Set it repeatedly for multiple values.
-c, --context string Path to the dockerfile build context. (default "/workspace/")
-d, --destination multi-arg type Registry the final image should be pushed to. Set it repeatedly for multiple destinations. (default )
-f, --dockerfile string Path to the dockerfile to be built. (default "Dockerfile")
--force Force building outside of a container
-h, --help help for executor
--insecure Push to insecure registry using plain HTTP
--no-push Do not push the image to the registry
--reproducible Strip timestamps out of the image to make it reproducible
--single-snapshot Take a single snapshot at the end of the build.
--skip-tls-verify Push to insecure registry ignoring TLS verify
--snapshotMode string Change the file attributes inspected during snapshotting (default "full")
--tarPath string Path to save the image in as a tarball instead of pushing
--target string Set the target build stage to build
-v, --verbosity string Log level (debug, info, warn, error, fatal, panic (default "info")
Expected behavior
Build logs show Kaniko's progress, then run exit 1, which fails the build.
Kaniko should only show its own usage and flags when the user's error was related to usage of Kaniko itself, not when any build error is encountered. Seeing kaniko's usage message makes it seem like I failed to use Kaniko correctly, when in fact I used the tool just fine, to execute a build that failed.
The text was updated successfully, but these errors were encountered:
Actual behavior
Execute an invalid build, like:
See output like:
Expected behavior
Build logs show Kaniko's progress, then run
exit 1
, which fails the build.Kaniko should only show its own usage and flags when the user's error was related to usage of Kaniko itself, not when any build error is encountered. Seeing kaniko's usage message makes it seem like I failed to use Kaniko correctly, when in fact I used the tool just fine, to execute a build that failed.
The text was updated successfully, but these errors were encountered: