mirror of https://github.com/docker/docs.git
return err when volume list fails
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
e975dadaa0
commit
ed2d300ed0
|
@ -499,6 +499,10 @@ func (daemon *Daemon) Volumes(filter string) ([]*types.Volume, []string, error)
|
|||
}
|
||||
|
||||
volumes, warnings, err := daemon.volumes.List()
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
filterVolumes, err := daemon.filterVolumes(volumes, volFilters)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
|
Loading…
Reference in New Issue