github.com/rawahars/moby@v24.0.4+incompatible/daemon/containerd/image_squash.go (about)

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