1
0
mirror of https://github.com/docker/compose.git synced 2025-04-07 19:55:07 +02:00

Merge pull request from ndeloof/run_volumes_from

prepare volume for service set by `run`
This commit is contained in:
Nicolas De loof 2021-08-30 21:19:46 +02:00 committed by GitHub
commit 28c854fe27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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