mirror of
https://github.com/containers/podman.git
synced 2025-09-26 00:06:04 +08:00

Add a new "image" mount type to `--mount`. The source of the mount is the name or ID of an image. The destination is the path inside the container. Image mounts further support an optional `rw,readwrite` parameter which if set to "true" will yield the mount writable inside the container. Note that no changes are propagated to the image mount on the host (which in any case is read only). Mounts are overlay mounts. To support read-only overlay mounts, vendor a non-release version of Buildah. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
25 lines
701 B
Go
25 lines
701 B
Go
// +build darwin
|
|
|
|
package buildah
|
|
|
|
import (
|
|
"github.com/opencontainers/runc/libcontainer/configs"
|
|
"github.com/pkg/errors"
|
|
)
|
|
|
|
// ContainerDevices is an alias for a slice of github.com/opencontainers/runc/libcontainer/configs.Device structures.
|
|
type ContainerDevices = []configs.Device
|
|
|
|
func setChildProcess() error {
|
|
return errors.New("function not supported on non-linux systems")
|
|
}
|
|
|
|
func runUsingRuntimeMain() {}
|
|
|
|
func (b *Builder) Run(command []string, options RunOptions) error {
|
|
return errors.New("function not supported on non-linux systems")
|
|
}
|
|
func DefaultNamespaceOptions() (NamespaceOptions, error) {
|
|
return NamespaceOptions{}, errors.New("function not supported on non-linux systems")
|
|
}
|