Merge pull request #1914 from ndeloof/run_volumes

run -v should not remove configured volumes
This commit is contained in:
Lorena Rangel 2021-07-12 16:02:21 +02:00 committed by GitHub
commit 8fd04195be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {
target.Volumes = []types.ServiceVolumeConfig{}
for _, v := range opts.volumes {
volume, err := loader.ParseVolume(v)
if err != nil {