mirror of
https://github.com/containers/podman.git
synced 2025-11-14 10:09:20 +08:00
Vendor in containers/(storage,image, common, buildah)
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
6
vendor/github.com/containers/buildah/delete.go
generated
vendored
6
vendor/github.com/containers/buildah/delete.go
generated
vendored
@@ -1,14 +1,12 @@
|
||||
package buildah
|
||||
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
import "fmt"
|
||||
|
||||
// Delete removes the working container. The buildah.Builder object should not
|
||||
// be used after this method is called.
|
||||
func (b *Builder) Delete() error {
|
||||
if err := b.store.DeleteContainer(b.ContainerID); err != nil {
|
||||
return errors.Wrapf(err, "error deleting build container %q", b.ContainerID)
|
||||
return fmt.Errorf("error deleting build container %q: %w", b.ContainerID, err)
|
||||
}
|
||||
b.MountPoint = ""
|
||||
b.Container = ""
|
||||
|
||||
Reference in New Issue
Block a user