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:
parent
ecef5d37a7
commit
ec5111f1c2
5 changed files with 77 additions and 12 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue