As was noted by this user (Tests can't connect to localhost in docker), almost a year ago, it’s still not possible to connect to a docker container in V 2.0. That’s kind of an important feature since it’s not possible to do any testing of the front end (like checking for a basic 200 status). Please advise.
Here’s my first post about this issue
https://discuss.circleci.com/t/how-to-connect-to-docker-boxes-when-using-executor-type-docker/13888