mirror of
https://github.com/containers/skopeo.git
synced 2026-02-21 14:42:42 +00:00
buildah mount should work like the mount command and list all mount points when no options are specified. Need buildah umount to remove mount point from the database when a mount point is umounted. Also remove Mounts field from the builder object. We only support a single mount point so no reason for this field any longer. Signed-off-by: Dan Walsh <dwalsh@redhat.com> Closes: #124 Approved by: nalind
12 lines
202 B
Go
12 lines
202 B
Go
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
|
|
}
|