DockerCLI/cli/command
Ian Campbell 891b3d953e cli-plugins: use `docker system dial-stdio` to call the daemon
This means that plugins can use whatever methods the monolithic CLI supports,
which is good for consistency.

This relies on `os.Args[0]` being something which can be executed again to
reach the same binary, since it is propagated (via an envvar) to the plugin for
this purpose. This essentially requires that the current working directory and
path are not modified by the monolithic CLI before it launches the plugin nor
by the plugin before it initializes the client. This should be the case.

Previously the fake apiclient used by `TestExperimentalCLI` was not being used,
since `cli.Initialize` was unconditionally overwriting it with a real one
(talking to a real daemon during unit testing, it seems). This wasn't expected
nor desirable and no longer happens with the new arrangements, exposing the
fact that no `pingFunc` is provided, leading to a panic. Add a `pingFunc` to
the fake client to avoid this.

Signed-off-by: Ian Campbell <ijc@docker.com>
2019-02-18 11:53:37 +00:00
..
builder builder/prune: rename max-age filter to unused-for in help output 2018-10-17 00:35:10 +00:00
bundlefile Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
checkpoint formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
commands Fast Context Switch: commands 2019-01-10 22:25:43 +01:00
config formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
container Remove docker api dependency from cli/config 2019-01-31 21:25:43 +00:00
context Add context store config options and expose context commands 2019-01-29 11:19:54 +01:00
engine Remove e-mail from trial flow 2019-01-08 00:35:24 +01:00
formatter Fast Context Switch: commands 2019-01-10 22:25:43 +01:00
idresolver Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
image Remove docker api dependency from cli/config 2019-01-31 21:25:43 +00:00
inspect Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
manifest Add bash completion for `manifest` command family 2018-08-30 08:54:49 +02:00
network formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
node Fix tests with missing mocks 2018-11-08 11:37:49 +01:00
plugin Fix tests with missing mocks 2018-11-08 11:37:49 +01:00
registry Remove docker api dependency from cli/config 2019-01-31 21:25:43 +00:00
secret formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
service support --mount type=bind,bind-nonrecursive,... 2019-01-10 12:07:46 +09:00
stack Add support for pull secrets and policies 2019-01-29 18:12:43 +01:00
swarm Extract streams helpers from command package to their own package to remove a cyclic dependency from command to internal/containerizedengine 2019-01-28 14:36:00 +01:00
system Integrate CLI plugins into `docker info` 2019-01-30 13:45:26 +00:00
task formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
trust Fix tests with missing mocks 2018-11-08 11:37:49 +01:00
volume Extract streams helpers from command package to their own package to remove a cyclic dependency from command to internal/containerizedengine 2019-01-28 14:36:00 +01:00
cli.go cli-plugins: use `docker system dial-stdio` to call the daemon 2019-02-18 11:53:37 +00:00
cli_options.go Add context store config options and expose context commands 2019-01-29 11:19:54 +01:00
cli_options_test.go Unit test for WithContentTrustFromEnv 2019-01-29 11:26:40 +00:00
cli_test.go cli-plugins: use `docker system dial-stdio` to call the daemon 2019-02-18 11:53:37 +00:00
context.go Fast Context Switch: commands 2019-01-10 22:25:43 +01:00
events_utils.go updated vendoring 2017-09-01 19:41:06 -04:00
orchestrator.go Fast Context Switch: commands 2019-01-10 22:25:43 +01:00
orchestrator_test.go Introduce docker context store 2019-01-04 17:06:51 +01:00
registry.go Remove docker api dependency from cli/config 2019-01-31 21:25:43 +00:00
registry_test.go Remove docker api dependency from cli/config 2019-01-31 21:25:43 +00:00
streams.go Extract streams helpers from command package to their own package to remove a cyclic dependency from command to internal/containerizedengine 2019-01-28 14:36:00 +01:00
trust.go Refactor content_trust cli/flags handling 2018-03-08 15:00:43 -05:00
utils.go Extract streams helpers from command package to their own package to remove a cyclic dependency from command to internal/containerizedengine 2019-01-28 14:36:00 +01:00