diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b6dfc92..6a1aa322 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/lang/zh-CN/ ## [Unreleased] +### Fixed + +- 修复 Docker 容器测试后未正常清理的问题 + ## [4.0.3] - 2024-11-20 ### Added diff --git a/src/providers/docker_test/__init__.py b/src/providers/docker_test/__init__.py index 264f2ab1..62cf0015 100644 --- a/src/providers/docker_test/__init__.py +++ b/src/providers/docker_test/__init__.py @@ -101,6 +101,7 @@ async def run(self, version: str) -> DockerTestResult: "PLUGINS_URL": REGISTRY_PLUGINS_URL, }, detach=False, + remove=True, ).decode() data = json.loads(output) diff --git a/tests/utils/docker_test/test_docker_plugin_test.py b/tests/utils/docker_test/test_docker_plugin_test.py index ff3c4e9d..97f3915d 100644 --- a/tests/utils/docker_test/test_docker_plugin_test.py +++ b/tests/utils/docker_test/test_docker_plugin_test.py @@ -50,4 +50,5 @@ async def test_docker_plugin_test(mocked_api: MockRouter, mocker: MockerFixture) } ), detach=False, + remove=True, )