diff --git a/CHANGELOG.md b/CHANGELOG.md index a542b3777..3250a6994 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased + +- Specify `init` value in default Docker compose file so that exit signals are handled correctly (substantially improves container shutdown performance). + ## v0.3.24 (18 August 2024) - Support for tool calling for Llama 3.1 models on Bedrock. diff --git a/src/inspect_ai/util/_sandbox/docker/config.py b/src/inspect_ai/util/_sandbox/docker/config.py index 4e42dbd71..d01f55142 100644 --- a/src/inspect_ai/util/_sandbox/docker/config.py +++ b/src/inspect_ai/util/_sandbox/docker/config.py @@ -74,6 +74,7 @@ def safe_cleanup_auto_compose(file: str | None) -> None: default: image: "python:3.12-bookworm" command: "tail -f /dev/null" + init: true network_mode: none stop_grace_period: 1s """ @@ -84,6 +85,7 @@ def safe_cleanup_auto_compose(file: str | None) -> None: build: context: "." command: "tail -f /dev/null" + init: true network_mode: none stop_grace_period: 1s """