From e6f7c64eb8762af35f319013dfa9eefc20d403c0 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Mon, 12 Jul 2021 12:40:37 +0200 Subject: [PATCH] run -v should not remove configured volumes Signed-off-by: Nicolas De Loof --- cmd/compose/run.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/compose/run.go b/cmd/compose/run.go index aff9934cb..0b79927aa 100644 --- a/cmd/compose/run.go +++ b/cmd/compose/run.go @@ -72,7 +72,6 @@ func (opts runOptions) apply(project *types.Project) error { } } if len(opts.volumes) > 0 { - target.Volumes = []types.ServiceVolumeConfig{} for _, v := range opts.volumes { volume, err := loader.ParseVolume(v) if err != nil {