image_commit.go 956 B

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