mirror of
https://github.com/containers/podman.git
synced 2025-09-26 08:14:14 +08:00
Vendor in latest containers/buildah
Switch from projectatomic/buildah to containers/buildah Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
18
vendor/github.com/containers/buildah/delete.go
generated
vendored
Normal file
18
vendor/github.com/containers/buildah/delete.go
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
package buildah
|
||||
|
||||
import (
|
||||
"github.com/opencontainers/selinux/go-selinux/label"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
// 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")
|
||||
}
|
||||
b.MountPoint = ""
|
||||
b.Container = ""
|
||||
b.ContainerID = ""
|
||||
return label.ReleaseLabel(b.ProcessLabel)
|
||||
}
|
Reference in New Issue
Block a user