소스 검색

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 {