Explorar o código

Change --volume behavior to add instead of replace mounts

Signed-off-by: Andy Neff <[email protected]>
Andy Neff %!s(int64=8) %!d(string=hai) anos
pai
achega
4796e04cae
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      compose/service.py

+ 2 - 0
compose/service.py

@@ -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'):