| 393 | assert container.status == "running" |
| 394 | |
| 395 | def test_remove(self): |
| 396 | client = docker.from_env(version=TEST_API_VERSION) |
| 397 | container = client.containers.run("alpine", "echo hello", detach=True) |
| 398 | self.tmp_containers.append(container.id) |
| 399 | assert container.id in [c.id for c in client.containers.list(all=True)] |
| 400 | container.wait() |
| 401 | container.remove() |
| 402 | containers = client.containers.list(all=True) |
| 403 | assert container.id not in [c.id for c in containers] |
| 404 | |
| 405 | def test_rename(self): |
| 406 | client = docker.from_env(version=TEST_API_VERSION) |