Files
Giuseppe Scrivano 5691938563 vendor: update containers/buildah
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2018-10-14 16:57:28 +02:00

20 lines
443 B
Go

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 {
return errors.Wrapf(err, "error unmounting build container %q", b.ContainerID)
}
b.MountPoint = ""
err = b.Save()
if err != nil {
return errors.Wrapf(err, "error saving updated state for build container %q", b.ContainerID)
}
return nil
}