Преглед изворни кода

Fix volume path warning

Signed-off-by: Aanand Prasad <[email protected]>
Aanand Prasad пре 10 година
родитељ
комит
a9b1f15f92
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      compose/config.py

+ 4 - 4
compose/config.py

@@ -440,12 +440,12 @@ def resolve_volume_path(volume, working_dir, service_name):
 
         if not any(host_path.startswith(c) for c in PATH_START_CHARS):
             log.warn(
-                'Warning: the mapping "{0}" in the volumes config for '
-                'service "{1}" is ambiguous. In a future version of Docker, '
+                'Warning: the mapping "{0}:{1}" in the volumes config for '
+                'service "{2}" is ambiguous. In a future version of Docker, '
                 'it will designate a "named" volume '
                 '(see https://github.com/docker/docker/pull/14242). '
-                'To prevent unexpected behaviour, change it to "./{0}"'
-                .format(volume, service_name)
+                'To prevent unexpected behaviour, change it to "./{0}:{1}"'
+                .format(host_path, container_path, service_name)
             )
 
         return "%s:%s" % (expand_path(working_dir, host_path), container_path)