/var/run/docker.sock.
This example assumes ./my-project contains compose.yaml and a test service named test.
Run the integration tests
1
Start Docker
--copy-dir:dind image starts dockerd. Wait for it before sending Compose commands:2
Run the tests
test with the service whose exit code should decide the CI result. msb exec returns that code to the host.msb cp makes a guest copy. Use a clean project directory, and do not copy credentials or unrelated files into the sandbox.3
Clean up
Stop the Compose stack inside the sandbox:Remove the sandbox:Removing the sandbox also removes Docker’s image and build cache. Keep the sandbox between trusted runs if you want to reuse that cache; do not carry a writable cache across repositories or trust boundaries.