Skip to content

Commit

Permalink
Merge pull request #1870 from aanand/fix-volume-path-warning
Browse files Browse the repository at this point in the history
Fix volume path warning
  • Loading branch information
mnowster committed Aug 19, 2015
2 parents 6edc673 + 530d20d commit 71ffa89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compose/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,12 @@ def resolve_volume_path(volume, working_dir, service_name):
if host_path is not None:
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)
)

host_path = os.path.expanduser(host_path)
Expand Down

0 comments on commit 71ffa89

Please sign in to comment.