diff --git a/core/testcontainers/core/container.py b/core/testcontainers/core/container.py index f0da90bb..ba80ffdb 100644 --- a/core/testcontainers/core/container.py +++ b/core/testcontainers/core/container.py @@ -193,7 +193,7 @@ def _create_instance(cls) -> "Reaper": .with_name(f"testcontainers-ryuk-{SESSION_ID}") .with_exposed_ports(8080) .with_volume_mapping(RYUK_DOCKER_SOCKET, "/var/run/docker.sock", "rw") - .with_kwargs(privileged=RYUK_PRIVILEGED) + .with_kwargs(privileged=RYUK_PRIVILEGED, auto_remove=True) .start() ) wait_for_logs(Reaper._container, r".* Started!") diff --git a/pyproject.toml b/pyproject.toml index 4d310465..e6846224 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "testcontainers" -version = "4.1.0" # auto-incremented by release-please +version = "4.1.2" # auto-incremented by release-please description = "Python library for throwaway instances of anything that can run in a Docker container" authors = ["Sergey Pirogov "] maintainers = [