2022-07-18 10:51:49 +00:00
|
|
|
package containerd
|
|
|
|
|
|
|
|
import (
|
2022-08-10 13:22:32 +00:00
|
|
|
"errors"
|
|
|
|
|
2022-07-18 10:51:49 +00:00
|
|
|
"github.com/docker/docker/api/types/backend"
|
2022-08-10 13:22:32 +00:00
|
|
|
"github.com/docker/docker/errdefs"
|
2022-07-18 10:51:49 +00:00
|
|
|
"github.com/docker/docker/image"
|
|
|
|
)
|
|
|
|
|
|
|
|
// CommitImage creates a new image from a commit config.
|
|
|
|
func (i *ImageService) CommitImage(c backend.CommitConfig) (image.ID, error) {
|
2022-08-10 13:22:32 +00:00
|
|
|
return "", errdefs.NotImplemented(errors.New("not implemented"))
|
2022-07-18 10:51:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// CommitBuildStep is used by the builder to create an image for each step in
|
|
|
|
// the build.
|
|
|
|
//
|
|
|
|
// This method is different from CreateImageFromContainer:
|
|
|
|
// - it doesn't attempt to validate container state
|
|
|
|
// - it doesn't send a commit action to metrics
|
|
|
|
// - it doesn't log a container commit event
|
|
|
|
//
|
|
|
|
// This is a temporary shim. Should be removed when builder stops using commit.
|
|
|
|
func (i *ImageService) CommitBuildStep(c backend.CommitConfig) (image.ID, error) {
|
2022-08-10 13:22:32 +00:00
|
|
|
return "", errdefs.NotImplemented(errors.New("not implemented"))
|
2022-07-18 10:51:49 +00:00
|
|
|
}
|