I am using Gitlab CI in combination with a runner that uses Docker. In the git repo of a project in Gitlab, I have placed a .gitlab-ci.yml file. Pushing this file causes the runner to create a Docker container based on the Docker image I have provided. It then runs the build steps laid down in the yml file. This works very well when the build succeeds.
However, when the build fails, I would like to be able to find the cause in the Docker container that was used to run this build. Is this possible?
The output of 'docker ps' shows that the container is running during the build, but afterwards the output of 'docker ps -a' shows that the container was removed completely. Is there any way to prevent this?