cli icon indicating copy to clipboard operation
cli copied to clipboard

Feature request: CRUD on Manifests

Open lobradov opened this issue 6 years ago • 5 comments

Today's implementation of docker manifest is not able to perform following tasks:

  • create empty manifest list (useful before loops in image building scripts)
  • overwrite existing manifest list (allow building scripts to overwrite previous half-baked manifests and start from scratch)
  • list locally created manifests
  • delete local manifest lists, pushed or not
  • remove local image manifest from manifest list
  • clear the annotations for selected image

To solve those, I'm proposing a bit of a changes to manifest commands:

  • manifest create MANIFEST_LIST [MANIFEST...] [flags] - creates manifest list, possibly empty.
    Flags can be:
    • --overwrite - remove previous and create new list
  • manifest list and manifests - list all local manifests
  • manifest delete MANIFEST_LIST
  • manifest prune - delete all local manifests, after confirmation
  • manifest add MANIFEST_LIST MANIFEST [annotations] - add local image manifest to a list, possibly with annotations, in format as defined today.
  • manifest annotate MANIFEST_LIST MANIFEST [flags] [annotations]. Same as today, add/overview annotations for already added image. Flags:
    • --clear - delete all previous annotations for selected image manifest, and then add ones from the list. manifest annotate MANIFEST_LIST MANIFEST --clear (without new annotations) would, effectively clear all annotations.
  • manifest rm MANIFEST_LIST MANIFEST [MANIFEST...] - remove local image(s) manifest from a list.

Thanks!

lobradov avatar Jan 20 '18 16:01 lobradov