moby/cli/command
Sebastiaan van Stijn 482534ff5f Ignore certificate expiry error for top-level inspect
The top-level `docker inspect` command could return
an error if the nodes Swarm certificates were expired.

In situations where the user did not explicitly
ask for an object-type (`--type=foo`), we should
ignore these errors, and consider them equal to
"node is not a swarm manager".

This change makes `docker inspect` ignore these
errors if no type was specified.

As a further optimization, the "swarm status"
result is now stored in a variable, so that
other swarm-specific API calls can be skipped.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 66cf4cc7f7)
Signed-off-by: Victor Vieux <vieux@docker.com>
2017-01-24 16:05:53 -08:00
..
bundlefile Reinstate --bundle-file argument to 'docker deploy' 2016-11-10 11:28:18 -05:00
checkpoint Print checkpoint id when creating a checkpoint 2016-12-07 16:11:43 -08:00
commands secrets: secret management for swarm 2016-11-09 14:27:43 -05:00
container Support for docker content trust for plugins 2016-12-27 14:27:28 -08:00
formatter Ensure proper value is used when computing reclaimable space 2017-01-24 15:41:06 -08:00
idresolver service ps: Truncate Task IDs 2016-11-08 16:17:15 -08:00
image Support for docker content trust for plugins 2016-12-27 14:27:28 -08:00
inspect add endpoint mode in service pretty 2016-09-27 18:41:19 +08:00
network Convert DanglingOnly to Filters for docker image prune 2016-12-07 16:08:18 -08:00
node Revert "Add -a option to service/node ps" 2016-11-30 14:11:02 -08:00
plugin Fix usage message of plugin inspect 2017-01-04 12:44:54 +01:00
prune add docker network prune 2016-10-25 06:43:54 +00:00
registry Add registry-specific credential helper support 2016-12-09 14:23:58 -08:00
secret remove -f on secret create and unify usage with other commands 2017-01-09 06:37:40 -08:00
service cli: Pin image to digest using content trust 2016-12-15 18:20:13 -08:00
stack Merge pull request #29994 from vdemeester/29974-fix-external-network 2017-01-09 14:40:54 -08:00
swarm swarm leave is not only for workers 2016-12-15 22:41:43 -08:00
system Ignore certificate expiry error for top-level inspect 2017-01-24 16:05:53 -08:00
task service ps: Revert output to 1.12 behavior. 2016-12-12 13:25:44 -08:00
volume Convert DanglingOnly to Filters for docker image prune 2016-12-07 16:08:18 -08:00
cli.go Add registry-specific credential helper support 2016-12-09 14:23:58 -08:00
events_utils.go Add subcommand prune to the container, volume, image and system commands 2016-09-29 07:42:53 -07:00
in.go Fix the incorrect description for NewInStream 2016-10-13 22:33:09 +08:00
out.go Windows: OCI process struct convergence 2016-09-19 10:34:31 -07:00
registry.go Add registry-specific credential helper support 2016-12-09 14:23:58 -08:00
trust.go Move image trust related cli methods into the image package. 2016-09-09 10:50:16 -04:00
utils.go Windows: Prompt fix 2016-12-13 17:09:29 -08:00