vendor: update containers/buildah

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano
2018-10-13 11:14:16 +02:00
parent 2c4f3d6dad
commit 5691938563
20 changed files with 283 additions and 151 deletions

View File

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