image_commit.go 776 B

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