code: func WithNewSnapshot(i containerd.Image) containerd.NewContainerOpts {
  	return func(ctx context.Context, client *containerd.Client, c *containers.Container) error {
  		if c.Snapshotter == "" {
  			c.Snapshotter = containerd.DefaultSnapshotter
  		}
  		r, err := create(ctx, client, i, c.ID, "")
  		if err != nil {
  			return err
  		}
  		c.SnapshotKey = r.Key
  		c.Image = i.Name()
  		return nil
  	}
  }
docs: // WithNewSnapshot creates a new snapshot managed by containerized