diff --git a/pkg/compose/create.go b/pkg/compose/create.go index 960572422..14fd57e57 100644 --- a/pkg/compose/create.go +++ b/pkg/compose/create.go @@ -1098,7 +1098,7 @@ func (s *composeService) ensureVolume(ctx context.Context, volume types.VolumeCo return err } 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) return err