DockerCLI/docs/reference/commandline
Sebastiaan van Stijn ae611f4c07
move orchestration commands to their own section in --help output
This groups all swarm-related subcommands to their own section in the --help
output, to make it clearer which commands require swarm to be enabled

With this change:

    Usage:  docker [OPTIONS] COMMAND

    A self-sufficient runtime for containers

    Options:
          --config string      Location of client config files (default "/Users/sebastiaan/.docker")
      -c, --context string     Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use")
      -D, --debug              Enable debug mode
      -H, --host list          Daemon socket(s) to connect to
      -l, --log-level string   Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")
          --tls                Use TLS; implied by --tlsverify
          --tlscacert string   Trust certs signed only by this CA (default "/Users/sebastiaan/.docker/ca.pem")
          --tlscert string     Path to TLS certificate file (default "/Users/sebastiaan/.docker/cert.pem")
          --tlskey string      Path to TLS key file (default "/Users/sebastiaan/.docker/key.pem")
          --tlsverify          Use TLS and verify the remote
      -v, --version            Print version information and quit

    Management Commands:
      builder     Manage builds
      buildx*     Docker Buildx (Docker Inc., v0.8.1)
      checkpoint  Manage checkpoints
      completion  Generate the autocompletion script for the specified shell
      compose*    Docker Compose (Docker Inc., v2.3.3)
      container   Manage containers
      context     Manage contexts
      image       Manage images
      manifest    Manage Docker image manifests and manifest lists
      network     Manage networks
      plugin      Manage plugins
      scan*       Docker Scan (Docker Inc., v0.17.0)
      system      Manage Docker
      trust       Manage trust on Docker images
      volume      Manage volumes

    Orchestration Commands:
      config      Manage Swarm configs
      node        Manage Swarm nodes
      secret      Manage Swarm secrets
      service     Manage Swarm services
      stack       Manage Swarm stacks
      swarm       Manage Swarm

    Commands:
      attach      Attach local standard input, output, and error streams to a running container
      build       Build an image from a Dockerfile
      commit      Create a new image from a container's changes
      cp          Copy files/folders between a container and the local filesystem
      create      Create a new container
      diff        Inspect changes to files or directories on a container's filesystem
      events      Get real time events from the server
      exec        Run a command in a running container
      export      Export a container's filesystem as a tar archive
      history     Show the history of an image
      images      List images
      import      Import the contents from a tarball to create a filesystem image
      info        Display system-wide information
      inspect     Return low-level information on Docker objects
      kill        Kill one or more running containers
      load        Load an image from a tar archive or STDIN
      login       Log in to a Docker registry
      logout      Log out from a Docker registry
      logs        Fetch the logs of a container
      pause       Pause all processes within one or more containers
      port        List port mappings or a specific mapping for the container
      ps          List containers
      pull        Pull an image or a repository from a registry
      push        Push an image or a repository to a registry
      rename      Rename a container
      restart     Restart one or more containers
      rm          Remove one or more containers
      rmi         Remove one or more images
      run         Run a command in a new container
      save        Save one or more images to a tar archive (streamed to STDOUT by default)
      search      Search the Docker Hub for images
      start       Start one or more stopped containers
      stats       Display a live stream of container(s) resource usage statistics
      stop        Stop one or more running containers
      tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
      top         Display the running processes of a container
      unpause     Unpause all processes within one or more containers
      update      Update configuration of one or more containers
      version     Show the Docker version information
      wait        Block until one or more containers stop, then print their exit codes

    Run 'docker COMMAND --help' for more information on a command.

    To get more help with docker, check out our guides at https://docs.docker.com/go/guides/

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-04-08 16:55:34 +02:00
..
attach.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
build.md docs: build: add named anchor tags for flags 2022-03-30 12:42:26 +02:00
checkpoint.md Update most links in docs to use https by default 2021-10-15 15:04:36 +08:00
cli.md tweak description of "docker run" command 2022-04-01 12:28:37 +02:00
commit.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
config.md move orchestration commands to their own section in --help output 2022-04-08 16:55:34 +02:00
config_create.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
config_inspect.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
config_ls.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
config_rm.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
container.md tweak description of "docker run" command 2022-04-01 12:28:37 +02:00
container_prune.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
context.md docs: fix (table) formatting, fix some broken links 2022-03-30 15:03:25 +02:00
context_create.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
context_export.md docs: remove deprecated orchestrator flags 2022-02-24 12:28:29 +01:00
context_import.md docs: fix, and touch-up "docker context" docs 2020-05-07 13:53:25 +02:00
context_inspect.md Output compact JSON by default for --format=json 2022-03-15 15:42:35 +01:00
context_ls.md docs: fix (table) formatting, fix some broken links 2022-03-30 15:03:25 +02:00
context_rm.md docs: fix, and touch-up "docker context" docs 2020-05-07 13:53:25 +02:00
context_update.md docs: remove deprecated orchestrator flags 2022-02-24 12:28:29 +01:00
context_use.md docs: fix (table) formatting, fix some broken links 2022-03-30 15:03:25 +02:00
cp.md docs: reference: remove trailing space to fix yaml formatting 2022-04-01 21:31:14 +02:00
create.md cli/command: Add quiet option for create and run 2022-03-01 14:20:18 +01:00
diff.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
dockerd.md tweak description of login/logout 2022-04-04 10:44:11 +02:00
events.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
exec.md tweak description of "docker exec" command 2022-04-01 12:28:34 +02:00
export.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
history.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
image.md tweak description of "docker push" and "docker pull" commands 2022-04-01 12:33:05 +02:00
image_prune.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
images.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
import.md docs: fix (table) formatting, fix some broken links 2022-03-30 15:03:25 +02:00
index.md tweak description of login/logout 2022-04-04 10:44:11 +02:00
info.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
inspect.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
kill.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
load.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
login.md tweak description of login/logout 2022-04-04 10:44:11 +02:00
logout.md tweak description of login/logout 2022-04-04 10:44:11 +02:00
logs.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
manifest.md tweak description of login/logout 2022-04-04 10:44:11 +02:00
network.md reference docs: fix broken links and markdown touch-ups 2020-04-19 17:13:07 +02:00
network_connect.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
network_create.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
network_disconnect.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
network_inspect.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
network_ls.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
network_prune.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
network_rm.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
node.md remove unneeded comment from reference files 2020-03-19 15:15:23 +01:00
node_demote.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
node_inspect.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
node_ls.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
node_promote.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
node_ps.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
node_rm.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
node_update.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
pause.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
plugin.md remove unneeded comment from reference files 2020-03-19 15:15:23 +01:00
plugin_create.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
plugin_disable.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
plugin_enable.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
plugin_inspect.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
plugin_install.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
plugin_ls.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
plugin_push.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
plugin_rm.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
plugin_set.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
plugin_upgrade.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
port.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
ps.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
pull.md Merge pull request #3509 from thaJeztah/docs_anchors 2022-04-01 20:40:16 +02:00
push.md Merge pull request #3509 from thaJeztah/docs_anchors 2022-04-01 20:40:16 +02:00
rename.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
restart.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
rm.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
rmi.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
run.md Merge pull request #3509 from thaJeztah/docs_anchors 2022-04-01 20:40:16 +02:00
save.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
search.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
secret.md move orchestration commands to their own section in --help output 2022-04-08 16:55:34 +02:00
secret_create.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
secret_inspect.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
secret_ls.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
secret_rm.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
service.md move orchestration commands to their own section in --help output 2022-04-08 16:55:34 +02:00
service_create.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
service_inspect.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
service_logs.md fix docs, completion and docker service 2020-08-06 17:37:08 +03:00
service_ls.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
service_ps.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
service_rm.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
service_rollback.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
service_scale.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
service_update.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
stack.md move orchestration commands to their own section in --help output 2022-04-08 16:55:34 +02:00
stack_deploy.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
stack_ls.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
stack_ps.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
stack_rm.md docs: remove deprecated orchestrator flags 2022-02-24 12:28:29 +01:00
stack_services.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
start.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
stats.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
stop.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
swarm.md remove unneeded comment from reference files 2020-03-19 15:15:23 +01:00
swarm_ca.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
swarm_init.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
swarm_join-token.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
swarm_join.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
swarm_leave.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
swarm_unlock-key.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
swarm_unlock.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
swarm_update.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
system.md remove unneeded comment from reference files 2020-03-19 15:15:23 +01:00
system_df.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
system_events.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
system_prune.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
tag.md docs: hyphens are not dashes 2022-03-20 18:42:18 -05:00
top.md remove unneeded comment from reference files 2020-03-19 15:15:23 +01:00
trust_inspect.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
trust_key_generate.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
trust_key_load.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
trust_revoke.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
trust_sign.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
trust_signer_add.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
trust_signer_remove.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
unpause.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
update.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
version.md docs: remove deprecated orchestrator flags 2022-02-24 12:28:29 +01:00
volume.md reference docs: fix broken links and markdown touch-ups 2020-04-19 17:13:07 +02:00
volume_create.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
volume_inspect.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
volume_ls.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
volume_prune.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
volume_rm.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
wait.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00