DockerCLI/command
Yong Tang 9aba07679f Fix issue of `WARNING: --size ignored for volume` for `docker inspect`
When `docker inspect` is invoked, it is possible to pass a flag of
`-s` for container types to display size information. If `-s` is used
for non-container types then a warning `WARNING: --size ignored for volume`
will show up.

However, currently `WARNING: --size ignored for volume` will show up even
when `-s` is not passed to `docker inspect` for non-container types.

This fix fixes this issue by checking if `-s` has been passed or not (`getSize`).
Also, since image inspect does not support `-s`, `IsSizeSupported` has been changed
to false for images.

This fix is tested manually.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-09-12 23:08:19 -07:00
..
bundlefile Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
checkpoint Update checkpoint comments to be more accurate 2016-09-09 12:13:46 -04:00
commands Initial implementation of containerd Checkpoint API. 2016-09-08 21:31:52 -04:00
container Merge pull request #26456 from dnephin/move_cli_command_registry 2016-09-12 15:11:04 +02:00
formatter Restrict size to 2 fractional digits for `docker images` 2016-09-08 18:26:50 -07:00
idresolver Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
image Merge pull request #26103 from sakeven/fix-validate-build-arg 2016-09-12 09:15:58 -04:00
inspect Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
network Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
node Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
plugin Remove remaining registry methods from DockerCLI. 2016-09-09 15:50:01 -04:00
registry Remove remaining registry methods from DockerCLI. 2016-09-09 15:50:01 -04:00
service Remove remaining registry methods from DockerCLI. 2016-09-09 15:50:01 -04:00
stack Remove remaining registry methods from DockerCLI. 2016-09-09 15:50:01 -04:00
swarm Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
system Fix issue of `WARNING: --size ignored for volume` for `docker inspect` 2016-09-12 23:08:19 -07:00
task Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
volume Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
cli.go Remove RetrieveAuthConfigs 2016-09-09 15:50:01 -04:00
in.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
out.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
registry.go Remove remaining registry methods from DockerCLI. 2016-09-09 15:50:01 -04:00
trust.go Move image trust related cli methods into the image package. 2016-09-09 10:50:16 -04:00
utils.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00