cli/docs/reference/commandline
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
..
attach.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
bake.md add top-level "docker bake" command as alias for "docker buildx bake" 2025-04-11 16:28:47 +02:00
build.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
builder.md
builder_build.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
builder_prune.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
checkpoint.md docs: minor editorial improvements, typo fixes 2023-12-19 17:15:38 +01:00
checkpoint_create.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
checkpoint_ls.md
checkpoint_rm.md
commit.md docs: regenerate markdown 2024-02-21 10:40:13 +01:00
config.md
config_create.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
config_inspect.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
config_ls.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
config_rm.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
container.md
container_attach.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
container_commit.md docs: refresh image versions in examples 2024-07-24 09:47:36 +02:00
container_cp.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
container_create.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
container_diff.md docs: rename cli reference aliases to canonical 2024-01-15 11:29:30 +01:00
container_exec.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
container_export.md docs: update internal links after refactor 2024-08-11 16:58:08 +02:00
container_inspect.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
container_kill.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
container_logs.md docs: update internal links after refactor 2024-08-11 16:58:08 +02:00
container_ls.md docs: update internal links after refactor 2024-08-11 16:58:08 +02:00
container_pause.md docs: rename cli reference aliases to canonical 2024-01-15 11:29:30 +01:00
container_port.md docs: rename cli reference aliases to canonical 2024-01-15 11:29:30 +01:00
container_prune.md docs: Link supported Go duration strings 2024-10-07 10:37:00 +02:00
container_rename.md docs: rename cli reference aliases to canonical 2024-01-15 11:29:30 +01:00
container_restart.md docs: fix broken anchor-link in "container restart" reference 2025-02-21 23:45:32 +01:00
container_rm.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
container_run.md Add detailed descriptions for --ulimit options in docker run documentation 2025-02-25 16:15:21 +01:00
container_start.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
container_stats.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
container_stop.md cli/command/container: stop, restart: rename "--time" to "--timeout" 2024-09-30 09:43:54 +02:00
container_top.md docs: rename cli reference aliases to canonical 2024-01-15 11:29:30 +01:00
container_unpause.md docs: rename cli reference aliases to canonical 2024-01-15 11:29:30 +01:00
container_update.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
container_wait.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
context.md
context_create.md docs: minor editorial improvements, typo fixes 2023-12-19 17:15:38 +01:00
context_export.md
context_import.md
context_inspect.md
context_ls.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
context_rm.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
context_show.md
context_update.md
context_use.md docs: minor editorial improvements, typo fixes 2023-12-19 17:15:38 +01:00
cp.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
create.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
diff.md docs: regenerate stubs for non-canonical commands 2024-01-15 13:49:53 +01:00
docker.md add top-level "docker bake" command as alias for "docker buildx bake" 2025-04-11 16:28:47 +02:00
events.md docs: regenerate stubs for non-canonical commands 2024-01-15 13:49:53 +01:00
exec.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
export.md docs: regenerate stubs for non-canonical commands 2024-01-15 13:49:53 +01:00
history.md image/history: Add `--platform` flag 2024-10-10 17:00:43 +02:00
image.md
image_build.md docs, man: remove confusing example for "--isolation" 2025-01-02 12:15:08 +01:00
image_history.md image/history: Add `--platform` flag 2024-10-10 17:00:43 +02:00
image_import.md docs: rename cli reference aliases to canonical 2024-01-15 11:29:30 +01:00
image_inspect.md image/inspect: Add --platform flag 2025-04-11 15:53:41 +02:00
image_load.md image/load: Add `--platform` 2024-10-10 16:35:07 +02:00
image_ls.md image/list: Add `--tree` flag 2024-08-16 15:09:51 +02:00
image_prune.md docs: Link supported Go duration strings 2024-10-07 10:37:00 +02:00
image_pull.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
image_push.md push: Improve note message and colors 2024-07-10 11:36:40 +02:00
image_rm.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
image_save.md image/save: Add `--platform` 2024-10-10 16:35:03 +02:00
image_tag.md docs: update prose about image tag/name format 2024-10-17 12:36:32 +02:00
images.md image/list: Add `--tree` flag 2024-08-16 15:09:51 +02:00
import.md docs: regenerate stubs for non-canonical commands 2024-01-15 13:49:53 +01:00
index.md docs: update links to docker cli reference 2024-07-04 10:28:53 +02:00
info.md docs: regenerate stubs for non-canonical commands 2024-01-15 13:49:53 +01:00
inspect.md docker inspect: add support for swarm configs 2024-10-24 18:32:32 +02:00
kill.md docs: regenerate stubs for non-canonical commands 2024-01-15 13:49:53 +01:00
load.md image/load: Add `--platform` 2024-10-10 16:35:07 +02:00
login.md login: improve text on already authenticated and on OAuth login 2025-02-05 12:32:24 +01:00
logout.md
logs.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
manifest.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
manifest_annotate.md
manifest_create.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
manifest_inspect.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
manifest_push.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
manifest_rm.md
network.md
network_connect.md run, create, connect: add support for gw-priority 2024-12-03 15:13:08 +01:00
network_create.md Add option '--ipv4' 2024-12-10 15:51:21 +00:00
network_disconnect.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
network_inspect.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
network_ls.md docs: network ls add heading and anchor for "--no-trunc" 2025-02-21 23:51:04 +01:00
network_prune.md docs: Link supported Go duration strings 2024-10-07 10:37:00 +02:00
network_rm.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
node.md
node_demote.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
node_inspect.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
node_ls.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
node_promote.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
node_ps.md docs: update example redis tags from 3.0.x to 7.4.x 2024-11-05 11:20:17 +01:00
node_rm.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
node_update.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
pause.md docs: regenerate stubs for non-canonical commands 2024-01-15 13:49:53 +01:00
plugin.md
plugin_create.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
plugin_disable.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
plugin_enable.md
plugin_inspect.md docs: update url scheme for reference docs 2024-02-20 21:38:50 +01:00
plugin_install.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
plugin_ls.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
plugin_push.md docs: regenerate markdown 2024-02-21 10:40:13 +01:00
plugin_rm.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
plugin_set.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
plugin_upgrade.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
port.md docs: regenerate stubs for non-canonical commands 2024-01-15 13:49:53 +01:00
ps.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
pull.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
push.md push: Improve note message and colors 2024-07-10 11:36:40 +02:00
rename.md docs: regenerate stubs for non-canonical commands 2024-01-15 13:49:53 +01:00
restart.md cli/command/container: stop, restart: rename "--time" to "--timeout" 2024-09-30 09:43:54 +02:00
rm.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
rmi.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
run.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
save.md image/save: Add `--platform` 2024-10-10 16:35:03 +02:00
search.md docs/reference: search: remove mention of deprecated "IsAutomated" 2025-03-31 17:45:20 +02:00
secret.md
secret_create.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
secret_inspect.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
secret_ls.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
secret_rm.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
service.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
service_create.md docs: update example redis tags from 3.0.x to 7.4.x 2024-11-05 11:20:17 +01:00
service_inspect.md docs: update example redis tags from 3.0.x to 7.4.x 2024-11-05 11:20:17 +01:00
service_logs.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
service_ls.md docs: update example redis tags from 3.0.x to 7.4.x 2024-11-05 11:20:17 +01:00
service_ps.md docs: update example redis tags from 3.0.x to 7.4.x 2024-11-05 11:20:17 +01:00
service_rm.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
service_rollback.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
service_scale.md docs: update example redis tags from 3.0.x to 7.4.x 2024-11-05 11:20:17 +01:00
service_update.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
stack.md
stack_config.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
stack_deploy.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
stack_ls.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
stack_ps.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
stack_rm.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
stack_services.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
start.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
stats.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
stop.md cli/command/container: stop, restart: rename "--time" to "--timeout" 2024-09-30 09:43:54 +02:00
swarm.md
swarm_ca.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
swarm_init.md Fix missing link from Configure node healthcheck heading 2025-02-19 16:56:28 +01:00
swarm_join-token.md docs: fix missing anchors in swarm reference pages 2025-02-21 23:46:07 +01:00
swarm_join.md docs: fix missing anchors in swarm reference pages 2025-02-21 23:46:07 +01:00
swarm_leave.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
swarm_unlock-key.md docs: fix missing anchors in swarm reference pages 2025-02-21 23:46:07 +01:00
swarm_unlock.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
swarm_update.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
system.md update cli-docs-tool to v0.6.0 2023-08-28 01:58:58 +02:00
system_df.md docs: use gh alert syntax for callouts 2024-08-16 11:02:10 +02:00
system_dial-stdio.md
system_events.md docs: corrected the max events returned 2024-10-16 12:21:51 +02:00
system_info.md docs: add documentation for CDI 2024-01-18 14:58:43 +01:00
system_prune.md docs: Link supported Go duration strings 2024-10-07 10:37:00 +02:00
tag.md docs: regenerate stubs for non-canonical commands 2024-01-15 13:49:53 +01:00
top.md docs: regenerate stubs for non-canonical commands 2024-01-15 13:49:53 +01:00
trust.md
trust_inspect.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
trust_key.md
trust_key_generate.md docs: minor editorial improvements, typo fixes 2023-12-19 17:15:38 +01:00
trust_key_load.md docs: minor editorial improvements, typo fixes 2023-12-19 17:15:38 +01:00
trust_revoke.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
trust_sign.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
trust_signer.md
trust_signer_add.md docs: minor editorial improvements, typo fixes 2023-12-19 17:15:38 +01:00
trust_signer_remove.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
unpause.md docs: regenerate stubs for non-canonical commands 2024-01-15 13:49:53 +01:00
update.md docs: regenerate stubs for non-canonical commands 2024-01-15 13:49:53 +01:00
version.md chore: update link to docker engine api reference 2024-08-20 12:35:04 +02:00
volume.md Update docs/command output for volume pruning 2023-08-12 14:22:23 +01:00
volume_create.md Correct typos in docs/ and man/ 2024-06-06 02:15:23 +00:00
volume_inspect.md docs/reference: update links to Go documentation 2023-08-25 14:10:40 +02:00
volume_ls.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
volume_prune.md chore: regenerate docs 2024-07-04 10:30:56 +02:00
volume_rm.md cli/command/volume: remove example and var for long description 2025-02-03 12:21:00 +01:00
volume_update.md
wait.md docs: regenerate stubs for non-canonical commands 2024-01-15 13:49:53 +01:00