Volume class

A docker container.

Constructors

Volume({required String name, required String driver, required String mountpoint, required List<VolumeLabel> labels, required String scope})
construct a docker container object from its parts.

Properties

driver String
Driver of this volume
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
labels List<VolumeLabel>
Labels
getter/setter pair
mountpoint String
host path where the volume lives
getter/setter pair
name String
The name of this volume.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope String
The scope of the volume.
getter/setter pair

Methods

delete() → void
deletes this docker volume. Throws a DockerCommandFailed if the delete fails.
isSame(Volume other) bool
Returns true if other has the same name as this volume.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(covariant Volume other) bool
The equality operator.
override

Static Methods

create({String? name, String driver = 'local'}) Volume
Creates a docker volume