mirror of https://github.com/docker/compose.git
report external volume name not found
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
1f0cf0723c
commit
52eeda9aa7
|
@ -1098,7 +1098,7 @@ func (s *composeService) ensureVolume(ctx context.Context, volume types.VolumeCo
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if volume.External.External {
|
if volume.External.External {
|
||||||
return fmt.Errorf("external volume %q not found", volume.External.Name)
|
return fmt.Errorf("external volume %q not found", volume.Name)
|
||||||
}
|
}
|
||||||
err := s.createVolume(ctx, volume)
|
err := s.createVolume(ctx, volume)
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue