run -v should not remove configured volumes

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2021-07-12 12:40:37 +02:00
parent 396d449d36
commit e6f7c64eb8
No known key found for this signature in database
GPG Key ID: 9858809D6F8F6E7E
1 changed files with 0 additions and 1 deletions

View File

@ -72,7 +72,6 @@ func (opts runOptions) apply(project *types.Project) error {
} }
} }
if len(opts.volumes) > 0 { if len(opts.volumes) > 0 {
target.Volumes = []types.ServiceVolumeConfig{}
for _, v := range opts.volumes { for _, v := range opts.volumes {
volume, err := loader.ParseVolume(v) volume, err := loader.ParseVolume(v)
if err != nil { if err != nil {