DockerCLI/cli/command
Sebastiaan van Stijn 1df6b68111
Mark checkpoint feature as Linux-only, and homogenize error messages
This patch adds annotations to mark the checkpoint commands as Linux only, which
hides them if the daemon is running a non-matching operating-system type;

Before:

    docker

    Usage:	docker COMMAND

    A self-sufficient runtime for containers

    ...

    Management Commands:
      config      Manage Docker configs
      container   Manage containers
      image       Manage images

After:

    docker

    Usage:	docker COMMAND

    A self-sufficient runtime for containers

    ...

    Management Commands:
      checkpoint  Manage checkpoints
      config      Manage Docker configs
      container   Manage containers
      image       Manage images

This change also prints errors when attempting to use checkpoint commands or
flags if the feature is not supported by the Daemon's operating system;

    $ docker checkpoint --help
    docker checkpoint is only supported on a Docker daemon running on linux, but the Docker daemon is running on windows

    $ docker checkpoint create --help
    docker checkpoint create is only supported on a Docker daemon running on linux, but the Docker daemon is running on windows

    $ docker checkpoint ls --help
    docker checkpoint ls is only supported on a Docker daemon running on linux, but the Docker daemon is running on windows

    $ docker checkpoint rm --help
    docker checkpoint rm is only supported on a Docker daemon running on linux, but the Docker daemon is running on windows

    $ docker container start --checkpoint=foo mycontainer
    "--checkpoint" requires the Docker daemon to run on linux, but the Docker daemon is running on windows

    $ docker container start --checkpoint-dir=/foo/bar mycontainer
    "--checkpoint-dir" requires the Docker daemon to run on linux, but the Docker daemon is running on windows

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-05-31 22:25:06 +02:00
..
bundlefile Convert assert.Check(t, is.Error()) to assert.Error 2018-03-06 16:00:28 -05:00
checkpoint Mark checkpoint feature as Linux-only, and homogenize error messages 2018-05-31 22:25:06 +02:00
commands add manifest command 2018-01-08 10:43:56 -06:00
config Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
container Mark checkpoint feature as Linux-only, and homogenize error messages 2018-05-31 22:25:06 +02:00
formatter Merge pull request #1037 from essamhassan/1036_fix_mounts_typo_in_srv_inspect_pretty 2018-05-14 10:55:41 +02:00
idresolver Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
image Add String method so quieted output displays properly 2018-05-29 05:30:17 +03:00
inspect Automated migration 2018-03-05 19:41:17 -05:00
manifest Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
network Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
node Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
plugin Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
registry Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
secret Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
service Minor refactor: use anyChanged() to detect changed flags 2018-05-24 01:30:09 +02:00
stack Fix outputting twice the docker stack rm error message 2018-05-30 15:56:41 +02:00
swarm Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
system Add test for version output aligning 2018-05-31 10:15:15 +02:00
task Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
trust Fixed gometalinter errors on test files 2018-04-10 16:03:56 +02:00
volume Bump moby to d37f5c6bdf788a6cb82c07fb707e31a240eff5f9 2018-05-18 11:44:14 +02:00
cli.go Remove experimentalCli annotation from all kubernetes flags and commands 2018-05-28 15:06:31 +02:00
cli_test.go Remove experimentalCli annotation from all kubernetes flags and commands 2018-05-28 15:06:31 +02:00
events_utils.go updated vendoring 2017-09-01 19:41:06 -04:00
in.go Fix docker run -it on windows 2017-05-03 18:41:19 -07:00
orchestrator.go Remove experimentalCli annotation from all kubernetes flags and commands 2018-05-28 15:06:31 +02:00
out.go updated vendoring 2017-09-01 19:41:06 -04:00
registry.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
registry_test.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
stream.go Fix docker run -it on windows 2017-05-03 18:41:19 -07:00
trust.go Refactor content_trust cli/flags handling 2018-03-08 15:00:43 -05:00
utils.go LCOW: Add `--platform=` CLI flag to pull/create/run/build 2017-10-31 09:50:43 -07:00