Maintain and diagnose runtime issues
Effective maintenance and troubleshooting ensure that containerized workloads remain secure and functional. This involves applying consistent security updates through automated builds and utilizing specialized debugging techniques for minimal, hardened environments.
Update Red Hat Hardened Images to receive security patches
Regular updates mitigate vulnerabilities by incorporating the latest security fixes. Because Red Hat Hardened Images are immutable, updates require rebuilding the image to layer application code over the refreshed base.
About this task
The steps for updating an image depend on your specific image configuration.
Procedure
Debug minimal Red Hat Hardened Images runtime containers by displaying the container logs
To reduce the attack surface, hardened images do not contain a shell and standard utilities. To troubleshoot containers with applications that log to standard error (stderr), you can display the container logs to identify problems.
Before you begin
- If you use RHEL, the
podmanpackage is installed.
Procedure
Debug minimal Red Hat Hardened Images runtime containers by using a transient debug container
To reduce the attack surface, hardened images do not contain a shell and standard utilities. To troubleshoot, you can attach a transient debug container to the running process. This approach provides a method to inspect network traffic, trace system calls, and inspect files.
Before you begin
- If you use RHEL, the
podmanpackage is installed.
Procedure
- If you use Podman on RHEL:
- If you use OpenShift, use Ephemeral Containers. For details, see How do I run top and ps commands when in a container without standard Linux tools.