1
0
mirror of https://github.com/docker/cli.git synced 2025-04-20 06:27:49 +03:00
Sebastiaan van Stijn adb0abaec5
add top-level "docker bake" command as alias for "docker buildx bake"
The [`docker buildx bake`][1] command has reached GA; this patch adds
a top-level `docker bake` command as alias for `docker buildx bake` to
improve discoverability and make it more convenient to use.

With this patch:

    docker --help

    Usage:  docker [OPTIONS] COMMAND

    A self-sufficient runtime for containers

    Common Commands:
      run         Create and run a new container from an image
      exec        Execute a command in a running container
      ps          List containers
      build       Build an image from a Dockerfile
      bake        Build from a file
      pull        Download an image from a registry
      push        Upload an image to a registry
      images      List images
    ...

The command is hidden if buildx is not installed;

    docker --help
    Usage:  docker [OPTIONS] COMMAND

    A self-sufficient runtime for containers

    Common Commands:
      run         Create and run a new container from an image
      exec        Execute a command in a running container
      ps          List containers
      build       Build an image from a Dockerfile
      pull        Download an image from a registry
      push        Upload an image to a registry
      images      List images
    ...

We can do some tweaking after this; currently it show an error
in situations where buildx is missing. We don't account for
"DOCKER_BUILDKIT=0", because this is a new feature that requires
buildx, and cannot be "disabled";

buildx missing;

    docker bake
    ERROR: bake requires the buildx component but it is missing or broken.
           Install the buildx component to use bake:
           https://docs.docker.com/go/buildx/

BuildKit disabled:

    DOCKER_BUILDKIT=0 docker bake
    ERROR: bake requires the buildx component but it is missing or broken.
           Install the buildx component to use bake:
           https://docs.docker.com/go/buildx/

[1]: https://www.docker.com/blog/ga-launch-docker-bake/

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-04-11 16:28:47 +02:00
..
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2024-02-21 10:40:13 +01:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-10-10 17:00:43 +02:00
2024-10-10 16:35:07 +02:00
2024-08-16 15:09:51 +02:00
2024-07-04 10:30:56 +02:00
2024-10-10 16:35:03 +02:00
2023-01-06 22:36:47 +01:00
2024-08-16 15:09:51 +02:00
2024-10-10 16:35:07 +02:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2024-12-10 15:51:21 +00:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-02-21 10:40:13 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-10 11:36:40 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-10-10 16:35:03 +02:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2024-01-18 14:58:43 +01:00
2023-08-28 01:58:58 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00