Files
docker-cli/cli/command
Boaz Shuster 9a2f2d769d Unmarshal a number as a Number in RawInspectFallback
Running `docker inspect --format "{{.ID}} {{.Size}}" alpine` prints
sha256:651aa95985aa4a17a38ffcf71f598ec461924ca96865facc2c5782ef2d2be07f 3983636
While `docker inspect --format "{{.Id}} {{.Size}}" alpine` prints
sha256:651aa95985aa4a17a38ffcf71f598ec461924ca96865facc2c5782ef2d2be07f 3.983636e+06

This happens because "Id" is not a field of types.ImageInspect and thus
tryRawInspectFallback is called and converts the raw response into `interface{}`
using a JSON decoder. However, by default that decoder converts numbers into
`float64` unless `UseNumber` is set.

Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
2017-06-21 13:10:14 +03:00
..
2017-04-17 17:40:59 -04:00
2017-05-08 15:57:50 -04:00
2017-05-11 13:42:49 -07:00
2017-05-22 01:39:06 +00:00
2017-05-08 10:51:30 -07:00
2017-06-06 00:23:21 +02:00
2017-05-02 17:57:46 -04:00
2017-06-06 00:23:21 +02:00
2017-05-02 17:57:46 -04:00
2017-05-03 18:41:19 -07:00
2017-05-03 18:41:19 -07:00
2017-05-03 18:41:19 -07:00
2017-04-17 17:40:59 -04:00
2017-05-08 15:57:50 -04:00