mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Change --volume behavior to add instead of replace mounts
Signed-off-by: Andy Neff <andrew.neff@visionsystemsinc.com>
This commit is contained in:
parent
9cdbb953ba
commit
2dd5c7d51a
@ -736,6 +736,8 @@ class Service(object):
|
||||
container_options = dict(
|
||||
(k, self.options[k])
|
||||
for k in DOCKER_CONFIG_KEYS if k in self.options)
|
||||
override_options['volumes'] = (container_options.get('volumes', []) +
|
||||
override_options.get('volumes', []))
|
||||
container_options.update(override_options)
|
||||
|
||||
if not container_options.get('name'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user