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:
parent
4017ea99fe
commit
ad9011ed96
2 changed files with 13 additions and 0 deletions
|
|
@ -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
|
||||
):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue