Selaa lähdekoodia

run -v should not remove configured volumes

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 4 vuotta sitten
vanhempi
sitoutus
e6f7c64eb8
1 muutettua tiedostoa jossa 0 lisäystä ja 1 poistoa
  1. 0 1
      cmd/compose/run.go

+ 0 - 1
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 {