mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
run -v should not remove configured volumes
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
396d449d36
commit
e6f7c64eb8
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user