Struct docker_command::Volume [−][src]
pub struct Volume {
pub src: PathBuf,
pub dst: PathBuf,
pub read_write: bool,
pub options: Vec<String>,
}
Expand description
Volume specification used when running a container.
Fields
src: PathBuf
Either a path on the host (if an absolute path) or the name of a volume.
dst: PathBuf
Absolute path in the container where the volume will be mounted.
read_write: bool
If true, mount the volume read-write. Defaults to false
.
options: Vec<String>
Additional options to set on the volume.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Volume
impl UnwindSafe for Volume
Blanket Implementations
Mutably borrows from an owned value. Read more