mirror of https://github.com/docker/docker-py.git
Make sure data is written in prune test so space can be reclaimed
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
bb82bcf784
commit
9b9fb0aa01
|
|
@ -1139,7 +1139,9 @@ class PauseTest(BaseAPIIntegrationTest):
|
||||||
class PruneTest(BaseAPIIntegrationTest):
|
class PruneTest(BaseAPIIntegrationTest):
|
||||||
@requires_api_version('1.25')
|
@requires_api_version('1.25')
|
||||||
def test_prune_containers(self):
|
def test_prune_containers(self):
|
||||||
container1 = self.client.create_container(BUSYBOX, ['echo', 'hello'])
|
container1 = self.client.create_container(
|
||||||
|
BUSYBOX, ['sh', '-c', 'echo hello > /data.txt']
|
||||||
|
)
|
||||||
container2 = self.client.create_container(BUSYBOX, ['sleep', '9999'])
|
container2 = self.client.create_container(BUSYBOX, ['sleep', '9999'])
|
||||||
self.client.start(container1)
|
self.client.start(container1)
|
||||||
self.client.start(container2)
|
self.client.start(container2)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue