image_squash.go 632 B

1234567891011121314151617
  1. package containerd
  2. import (
  3. "errors"
  4. "github.com/docker/docker/errdefs"
  5. )
  6. // SquashImage creates a new image with the diff of the specified image and
  7. // the specified parent. This new image contains only the layers from its
  8. // parent + 1 extra layer which contains the diff of all the layers in between.
  9. // The existing image(s) is not destroyed. If no parent is specified, a new
  10. // image with the diff of all the specified image's layers merged into a new
  11. // layer that has no parents.
  12. func (i *ImageService) SquashImage(id, parent string) (string, error) {
  13. return "", errdefs.NotImplemented(errors.New("not implemented"))
  14. }