github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/daemon/containerd/image_commit.go (about) 1 package containerd 2 3 import ( 4 "errors" 5 6 "github.com/docker/docker/api/types/backend" 7 "github.com/docker/docker/errdefs" 8 "github.com/docker/docker/image" 9 ) 10 11 // CommitImage creates a new image from a commit config. 12 func (i *ImageService) CommitImage(c backend.CommitConfig) (image.ID, error) { 13 return "", errdefs.NotImplemented(errors.New("not implemented")) 14 } 15 16 // CommitBuildStep is used by the builder to create an image for each step in 17 // the build. 18 // 19 // This method is different from CreateImageFromContainer: 20 // - it doesn't attempt to validate container state 21 // - it doesn't send a commit action to metrics 22 // - it doesn't log a container commit event 23 // 24 // This is a temporary shim. Should be removed when builder stops using commit. 25 func (i *ImageService) CommitBuildStep(c backend.CommitConfig) (image.ID, error) { 26 return "", errdefs.NotImplemented(errors.New("not implemented")) 27 }