docker/tarfile/dest.go
func (d *Destination) Commit(ctx context.Context) error {
	return d.tar.Close()
}
func (d *Destination) Commit(ctx context.Context) error {
	return d.tar.Close()
}
func ( d * Destination ) Commit ( ctx context . Context ) error { return d . tar . Close ( ) }
// Commit finishes writing data to the underlying io.Writer.
// It is the caller's responsibility to close it, if necessary.
Commit finishes writing data to the underlying io . Writer . It is the caller s responsibility to close it if necessary .