Browse Source

Merge pull request #1914 from ndeloof/run_volumes

run -v should not remove configured volumes
Lorena Rangel 4 năm trước cách đây
mục cha
commit
8fd04195be
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  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 {