Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid command should return exit code > 0 #732

Open
francisdb opened this issue Aug 17, 2021 · 0 comments
Open

Invalid command should return exit code > 0 #732

francisdb opened this issue Aug 17, 2021 · 0 comments

Comments

@francisdb
Copy link

An invalid command succeeds with exit code 0 where with plain docker this returns exit code 1
See log below

~ docker buildx push

Usage:  docker buildx [OPTIONS] COMMAND

Build with BuildKit

Options:
      --builder string   Override the configured builder instance

Management Commands:
  imagetools  Commands to work on images in registry

Commands:
  bake        Build from a file
  build       Start a build
  create      Create a new builder instance
  du          Disk usage
  inspect     Inspect current builder instance
  ls          List builder instances
  prune       Remove build cache
  rm          Remove a builder instance
  stop        Stop builder instance
  use         Set the current builder instance
  version     Show buildx version information

Run 'docker buildx COMMAND --help' for more information on a command.
➜  ~ echo $?
0
➜  ~ docker foo
docker: 'foo' is not a docker command.
See 'docker --help'~ echo $?
1
➜  ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant