Summary
In this chapter, we focused on container troubleshooting, trying to provide a set of best practices and tools to find and fix issues inside a container at build time or runtime.
We started by showing off some common use cases during container execution and build stages and their related solutions.
Afterward, we introduced the concept of health checks and illustrated how to implement solid probes on containers to monitor their statuses, while showing the architectural concepts behind them.
In the third section, we learned about a series of common error scenarios related to builds and showed how to solve them quickly.
In the final section, we introduced the nsenter
command and simulated a web frontend application that needed network troubleshooting to find out the cause of an internal server error. Thanks to this example, we learned how to conduct advanced troubleshooting inside the container namespaces.
In the next chapter, we are going to discuss container security...