Socket error processing request with flask, gunicorn, docker and azure
Finally, I found it was caused by pod liveness probes, because gunicorn server can't support http and https both together currently, and if we use only https for a public domain, and the http probes check request will be failed with this error.
Solution:Change gunicorn server to Nginx or Apache.