|
|
@ -820,13 +820,11 @@ class DockerManager(object):
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
|
# VOLUMES
|
|
|
|
# VOLUMES
|
|
|
|
# not including bind modes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
expected_volume_keys = set((image['ContainerConfig']['Volumes'] or {}).keys())
|
|
|
|
expected_volume_keys = set((image['ContainerConfig']['Volumes'] or {}).keys())
|
|
|
|
if self.volumes:
|
|
|
|
if self.volumes:
|
|
|
|
for key, config in self.volumes.iteritems():
|
|
|
|
expected_volume_keys.update(self.volumes.keys())
|
|
|
|
if not config and key not in self.binds:
|
|
|
|
|
|
|
|
expected_volume_keys.add(key)
|
|
|
|
|
|
|
|
actual_volume_keys = set((container['Config']['Volumes'] or {}).keys())
|
|
|
|
actual_volume_keys = set((container['Config']['Volumes'] or {}).keys())
|
|
|
|
|
|
|
|
|
|
|
|
if actual_volume_keys != expected_volume_keys:
|
|
|
|
if actual_volume_keys != expected_volume_keys:
|
|
|
|