diff options
Diffstat (limited to 'vendor/github.com/projectatomic/buildah/unmount.go')
-rw-r--r-- | vendor/github.com/projectatomic/buildah/unmount.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/github.com/projectatomic/buildah/unmount.go b/vendor/github.com/projectatomic/buildah/unmount.go new file mode 100644 index 000000000..e1578bf71 --- /dev/null +++ b/vendor/github.com/projectatomic/buildah/unmount.go @@ -0,0 +1,11 @@ +package buildah + +// Unmount unmounts a build container. +func (b *Builder) Unmount() error { + err := b.store.Unmount(b.ContainerID) + if err == nil { + b.MountPoint = "" + err = b.Save() + } + return err +} |