mirror of https://github.com/docker/compose.git
Merge pull request #1914 from ndeloof/run_volumes
run -v should not remove configured volumes
This commit is contained in:
commit
8fd04195be
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue