Volumes are now prefixed with the project name

When created through the compose file, volumes are prefixed
with the name of the project they belong to + underscore,
similarly to how containers are currently handled.

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2015-12-08 17:21:20 -08:00
commit ec5111f1c2
5 changed files with 77 additions and 12 deletions

View file

@ -41,7 +41,7 @@ class DockerClientTestCase(unittest.TestCase):
self.client.remove_image(i)
volumes = self.client.volumes().get('Volumes') or []
for v in volumes:
if 'composetests_' in v['Name']:
if 'composetest_' in v['Name']:
self.client.remove_volume(v['Name'])
def create_service(self, name, **kwargs):