Vendor in containers/(storage,image, common, buildah)

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2022-07-11 10:03:44 -04:00
parent 5f848d89ed
commit f67ab1eb20
576 changed files with 40399 additions and 10219 deletions

View File

@@ -1,19 +1,17 @@
package buildah
import (
"github.com/pkg/errors"
)
import "fmt"
// Unmount unmounts a build container.
func (b *Builder) Unmount() error {
_, err := b.store.Unmount(b.ContainerID, false)
if err != nil {
return errors.Wrapf(err, "error unmounting build container %q", b.ContainerID)
return fmt.Errorf("error unmounting build container %q: %w", b.ContainerID, err)
}
b.MountPoint = ""
err = b.Save()
if err != nil {
return errors.Wrapf(err, "error saving updated state for build container %q", b.ContainerID)
return fmt.Errorf("error saving updated state for build container %q: %w", b.ContainerID, err)
}
return nil
}