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() |
String |
getName() |
CreateVolumeCmd |
withDriver(String driver) |
CreateVolumeCmd |
withDriverOpts(Map<String,String> driverOpts) |
CreateVolumeCmd |
withName(String name) |
exec
@CheckForNull String getName()
@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 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 © 2017. All Rights Reserved.