浏览代码

run -v should not remove configured volumes

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 4 年之前
父节点
当前提交
e6f7c64eb8
共有 1 个文件被更改,包括 0 次插入1 次删除
  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 {