Can you connect to a remote host that runs the container?
Docker exec won't work if the container spins into start/fail loop.