prepare volume for service set by `run`
@@ -146,6 +146,9 @@ func (s *composeService) prepareRun(ctx context.Context, project *types.Project,
}
service.Labels = service.Labels.Add(api.SlugLabel, slug)
service.Labels = service.Labels.Add(api.OneoffLabel, "True")
+ if err := prepareVolumes(project); err != nil { // all dependencies already checked, but might miss service img
+ return "", err
+ }
if err := s.ensureImagesExists(ctx, project, false); err != nil { // all dependencies already checked, but might miss service img
return "", err
