Application Failure in Docker Containers
Symptom
During compatibility testing, when the application runs in a Docker container, the error message shown in Figure 1 is displayed.
Possible Causes
The detection commands in the compatibility_testing.sh file are not adapted for Docker container environments.
Troubleshooting Procedure
Modify the compatibility_testing.conf and compatibility_testing.sh files in the compatibility_testing/Chinese directory.
- Modify the compatibility_testing.conf file.
In the compatibility_testing.conf file, change kubernetes_env= to kubernetes_env=Y.
- Modify the compatibility_testing.sh file.
In the compatibility_testing.sh file, replace the second kubectl get all --all-namespaces in the check_process() function with docker ps.
Figure 2 After modification
