moby/cli/command
Sebastiaan van Stijn 66cf4cc7f7
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>
2016-12-13 17:22:43 +01: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-01 23:30:14 -05:00
commands Give a order to AddCommands, for easy read and maintenance. 2016-12-08 16:43:14 +08:00
container Convert DanglingOnly to Filters for docker image prune 2016-12-02 20:08:49 -08:00
formatter api: Hide UpdateStatus when it is not present 2016-12-01 15:08:41 -08:00
idresolver service ps: Truncate Task IDs 2016-11-08 16:17:15 -08:00
image Merge pull request #29104 from duglin/Issue29084 2016-12-07 17:18:55 -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-02 20:08:49 -08:00
node Revert "Add -a option to service/node ps" 2016-11-28 18:08:45 +01:00
plugin Add ID field for docker plugin ls 2016-12-02 13:42:50 -08:00
prune add docker network prune 2016-10-25 06:43:54 +00:00
registry Add registry-specific credential helper support 2016-12-01 10:29:00 -08:00
secret Fix issue where secret ID is masked by name 2016-12-02 20:24:29 -08:00
service Merge pull request #25860 from yongtang/1396-service-update-publish-rm 2016-12-08 20:09:56 +01:00
stack Handle logging in compose to swarm 2016-12-05 15:18:36 +01:00
swarm fix description of 'docker swarm init' 2016-11-28 13:24:02 +09:00
system Ignore certificate expiry error for top-level inspect 2016-12-13 17:22:43 +01:00
task service ps: Revert output to 1.12 behavior. 2016-12-06 18:52:47 -08:00
volume Convert DanglingOnly to Filters for docker image prune 2016-12-02 20:08:49 -08:00
cli.go Add registry-specific credential helper support 2016-12-01 10:29:00 -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-01 10:29:00 -08:00
trust.go Move image trust related cli methods into the image package. 2016-09-09 10:50:16 -04:00
utils.go return nil when no node or service to avoid additional api call 2016-10-11 10:59:16 +08:00