ContainerMount class

A volume or bind mount that is currently attached to a running container.

Returned in the Mounts array of a container inspect response; represents the resolved, active state rather than the declared intent captured in ContainerMountPoint.

Constructors

ContainerMount({String? type, String? name, String? source, String? destination, String? driver, String? mode, bool? rw, String? propagation})
Creates a ContainerMount with the given fields.
const
ContainerMount.fromJson(Map<String, dynamic> json)
Deserialises from Docker's JSON representation.
factory

Properties

destination → String?
Destination path inside the container.
final
driver → String?
Volume driver (only for type == 'volume').
final
hashCode → int
The hash code for this object.
no setterinherited
mode → String?
Mount mode string, e.g. 'rw' or 'ro'.
final
name → String?
Name of the Docker volume (only for type == 'volume').
final
propagation → String?
Mount propagation mode.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
rw → bool?
Whether the mount is read-write.
final
source → String?
Source path on the host.
final
type → String?
Mount type: 'bind', 'volume', or 'tmpfs'.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited