This chapter focuses entirely on container-level problems when running tests. These problems can be incompatibility of the JDK used or a remote server being offline. While this isn't meant to be a comprehensive guide on how to fix every problem, the hope is that this gives you ideas on where you can look to solve your problems when deploying your code during testing.
Dealing with problems running the container can be frustrating. Embedded containers typically log well on the client side, but you will not find the logs in the Surefire reports. You will need to capture log output in the output of your Maven run. With managed containers, the logs will be captured within your server's logs. Output from running the test client will be captured within your Surefire reports. It's essentially the same for remote containers, except that managed containers will contain startup and shutdown commands when complete.