moby--moby/plugin
Yong Tang bec385cff0 Fix `docker inspect <unkown object>` issue on Windows
This fix tries to address the issue raised on 29185 where
`docker inspect <unknown object>` on Windows will return:
```
Error response from daemon: plugins are not supported on this platform
```

The reason was that in case `--type` is not specified, `docker inspect`
will iterate through different types `container`, `image`, `network`,
`plugin` etc. The `plugin` object is the last type to check.

However, as `plugin` is not supported on Windows yet, the error message
is not very informative for `plugins are not supported on this platform`.

This fix tries to fix the issue by return a `not found` error on unsupported
platforms as well.

An integration test has been added to cover the changes for Windows/Linux.

This fix fixes 29185.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
(cherry picked from commit 88fcdb0a82)
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-12-07 16:16:34 -08:00
..
distribution refactor plugin install 2016-12-07 16:10:24 -08:00
store Allow `docker plugin inspect` to search based on ID or name 2016-12-02 13:39:37 -08:00
v2 refactor plugin install 2016-12-07 16:10:24 -08:00
backend_linux.go refactor plugin install 2016-12-07 16:10:24 -08:00
backend_unsupported.go Fix `docker inspect <unkown object>` issue on Windows 2016-12-07 16:16:34 -08:00
manager.go Fix issue caused by duplicate `docker plugin create` with same names 2016-11-29 14:06:04 -08:00
manager_linux.go Fix issue with plugin exit. 2016-11-29 14:10:10 -08:00
manager_solaris.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
manager_windows.go Make experimental a runtime flag 2016-10-24 15:20:01 -07:00