CircleCI 2.0 CLI should have option to leave docker containers open upon failiure


I am using the local CLI build tool to debug a new Circle 2.0 configuration (migration from 1.0).

I would really appreciate the option to leave the docker containers open upon a failure, I can currently attach to the docker containers that are created to debug issues by adding a long sleep before the failure occurs but this is an unnecessary workaround. Being able to access the shell within the main container is incredibly useful when steps are failing to debug the issue.

My current workaround:

  • add a sleep 10m before the failure
  • docker ps
  • grab the main container id
  • docker exec -i -t <containerId> /bin/bash