Don't warn when the container volume is specified as a compose option.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-01-05 17:30:27 -05:00
commit ad9011ed96
2 changed files with 13 additions and 0 deletions

View file

@ -880,6 +880,7 @@ def warn_on_masked_volume(volumes_option, container_volumes, service):
for volume in volumes_option:
if (
volume.external and
volume.internal in container_volumes and
container_volumes.get(volume.internal) != volume.external
):