mirror of
https://github.com/containers/podman.git
synced 2025-08-02 17:22:30 +08:00
Add support for overlay volume mounts in podman.
Add support -v for overlay volume mounts in podman. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Signed-off-by: Qi Wang <qiwan@redhat.com>
This commit is contained in:
@ -262,6 +262,8 @@ type ContainerConfig struct {
|
||||
Mounts []string `json:"mounts,omitempty"`
|
||||
// NamedVolumes lists the named volumes to mount into the container.
|
||||
NamedVolumes []*ContainerNamedVolume `json:"namedVolumes,omitempty"`
|
||||
// OverlayVolumes lists the overlay volumes to mount into the container.
|
||||
OverlayVolumes []*ContainerOverlayVolume `json:"overlayVolumes,omitempty"`
|
||||
|
||||
// Security Config
|
||||
|
||||
@ -449,6 +451,15 @@ type ContainerNamedVolume struct {
|
||||
Options []string `json:"options,omitempty"`
|
||||
}
|
||||
|
||||
// ContainerOverlayVolume is a overlay volume that will be mounted into the
|
||||
// container. Each volume is a libpod Volume present in the state.
|
||||
type ContainerOverlayVolume struct {
|
||||
// Destination is the absolute path where the mount will be placed in the container.
|
||||
Dest string `json:"dest"`
|
||||
// Source specifies the source path of the mount.
|
||||
Source string `json:"source,omitempty"`
|
||||
}
|
||||
|
||||
// Config accessors
|
||||
// Unlocked
|
||||
|
||||
|
Reference in New Issue
Block a user