public interface CreateVolumeCmd extends SyncDockerCmd<CreateVolumeResponse>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
CreateVolumeCmd.Exec |
| Modifier and Type | Method and Description |
|---|---|
String |
getDriver() |
Map<String,String> |
getDriverOpts() |
Map<String,String> |
getLabels() |
String |
getName() |
CreateVolumeCmd |
withDriver(String driver) |
CreateVolumeCmd |
withDriverOpts(Map<String,String> driverOpts) |
CreateVolumeCmd |
withLabels(Map<String,String> labels) |
CreateVolumeCmd |
withName(String name) |
exec@CheckForNull String getName()
@CheckForNull Map<String,String> getLabels()
@CheckForNull String getDriver()
@CheckForNull Map<String,String> getDriverOpts()
CreateVolumeCmd withName(String name)
name - - The new volume’s name. If not specified, Docker generates a name.CreateVolumeCmd withLabels(Map<String,String> labels)
labels - - A mapping of labels keys and values. Labels are a mechanism for applying metadata to Docker objects.CreateVolumeCmd withDriver(String driver)
driver - - Name of the volume driver to use. Defaults to local for the name.CreateVolumeCmd withDriverOpts(Map<String,String> driverOpts)
driverOpts - - A mapping of driver options and values. These options are passed directly to the driver and are driver specific.Copyright © 2025. All rights reserved.