Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make dockerized-e2e-runner.sh kill the container on timeout.
This was tested manually with the small script: #!/bin/bash # test with "timeout -k4 2 ./leak-test.sh" # observe that the trap properly cleans up the container. CONTAINER_NAME="leak-$$" echo "container: $CONTAINER_NAME" trap "docker kill ${CONTAINER_NAME}" EXIT docker run --rm --name="${CONTAINER_NAME}" ubuntu sleep 600 trap '' EXIT This should fix flakes associated with leaked containers: kubernetes/kubernetes#30962 and kubernetes/kubernetes#31213
- Loading branch information