How can i keep the container when job failed?

# gitlab-runner --version
Version:      13.1.0
Git revision: 6214287e
Git branch:   13-1-stable
GO version:   go1.13.8
Built:        2020-06-19T21:12:22+0000
OS/Arch:      linux/amd64

I use gitlab-runner (docker executor) to run some tests for my product.

In some tests, my program coredumps and generates core files. So the test job failed.

I want to find the exited container then start it. So I can get the scene where coredump happens and debug my program。

However, all exited or running containers are not the one used in the test.

How can i keep the container when job failed?