mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
podman volume create --opt=o=timeout...
add an option to configure the driver timeout when creating a volume. The default is 5 seconds but this value is too small for some custom drivers. Signed-off-by: cdoern <cdoern@redhat.com>
This commit is contained in:
@ -56,7 +56,7 @@ func (r *Runtime) newVolume(options ...VolumeCreateOption) (_ *Volume, deferredE
|
||||
|
||||
// Plugin can be nil if driver is local, but that's OK - superfluous
|
||||
// assignment doesn't hurt much.
|
||||
plugin, err := r.getVolumePlugin(volume.config.Driver)
|
||||
plugin, err := r.getVolumePlugin(volume.config)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "volume %s uses volume plugin %s but it could not be retrieved", volume.config.Name, volume.config.Driver)
|
||||
}
|
||||
|
Reference in New Issue
Block a user