From 78faf0dc51fe529fa52f13dc019e875a59f91f38 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Mon, 30 Aug 2021 09:35:01 +0200 Subject: [PATCH] prepare volume for service set by `run` Signed-off-by: Nicolas De Loof --- pkg/compose/run.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/compose/run.go b/pkg/compose/run.go index d70b87201..929c820a1 100644 --- a/pkg/compose/run.go +++ b/pkg/compose/run.go @@ -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