diff --git a/tests/integration/models_containers_test.py b/tests/integration/models_containers_test.py index a4d9f9c0da..f9f59c43b4 100644 --- a/tests/integration/models_containers_test.py +++ b/tests/integration/models_containers_test.py @@ -55,7 +55,8 @@ def test_run_with_volume(self): def test_run_with_named_volume(self): client = docker.from_env(version=TEST_API_VERSION) - client.volumes.create(name="somevolume") + volume = client.volumes.create(name="somevolume") + self.tmp_volumes.append(volume.id) container = client.containers.run( "alpine", "sh -c 'echo \"hello\" > /insidecontainer/test'",