diff options
author | Mathias Schreck <schreck.mathias@googlemail.com> | 2017-08-02 19:27:19 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-08-03 11:52:03 +0200 |
commit | 86d9b09c9b2f0f76da0cfa5ea420ae476983d7a3 (patch) | |
tree | 4ea8c0a07f2942657d978d933b9ed869ed0388cf /doc | |
parent | f6817ddf99e30f2be55bc6a39c5225e0d0e5fbff (diff) |
dockerTools: fix image json and manifest
The image json is not exactly the same as the layer json, therefore I changed the implementation to use the `baseJson` which doesn’t include layer specific details like `id`, `size` or the checksum of the layer. Also the `history` entry was missing in the image json. I’m not totally sure if this field is required, but a I got an error from a docker registry when I’ve tried to receive the distribution manifest of an image without those `history` entry: GET: `http://<registry-host>/v2/<imageName>/manifests/<imageTag>` ```json { "errors": [ { "code": "MANIFEST_INVALID", "message": "manifest invalid", "detail": {} } ] } ``` I’ve also used a while loop to iterate over all layers which should make sure that the order of the layers is correct. Previously `find` was used and I’m not sure if the order was always correct.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions