title: curl: (56) Recv failure: Connection reset by peer for Docker Container running on Cpanel
body: <p>I'm running a docker container with a python app listening at host='0.0.0.0' and port as 5050.
  When I curl my main site at localhost:5000, it returns the correct result. When I curl localhost:5050, it returns</p>
  <p>curl: (56) Recv failure: Connection reset by peer</p>
  <p>This is my build file</p>
  <pre><code>FROM ubuntu:20.04
  
  
  RUN apt update
  RUN apt install -y python3-pip
  
  # Install Dependencies
  COPY requirements.txt .
  RUN pip3 install  --no-cache-dir -r requirements.txt
  
  
  COPY search_api.py .
  COPY search/ search
  
  ENV DEBUG 0
  
  
  CMD [ &quot;gunicorn&quot;, &quot;--workers&quot;, &quot;2&quot;, &quot;--threads&quot;, &quot;1&quot;, &quot;-b&quot;, &quot;0.0.0.0:5050&quot;, &quot;--timeout&quot;, &quot;400&quot;, &quot;search_api:app&quot;]
  </code></pre>
  <p>I've verified that the container is running, and these are the logs I got back</p>
  <pre><code>[2021-05-29 17:00:43 +0000] [1] [INFO] Starting gunicorn 20.1.0
  [2021-05-29 17:00:43 +0000] [1] [INFO] Listening at: http://0.0.0.0:5050 (1)
  [2021-05-29 17:00:43 +0000] [1] [INFO] Using worker: sync
  [2021-05-29 17:00:43 +0000] [9] [INFO] Booting worker with pid: 9
  [2021-05-29 17:00:43 +0000] [10] [INFO] Booting worker with pid: 10
  </code></pre>
  <p>I don't have the folder registered as an application in CPanel or anything. I basically just pulled the repository after installing docker along with docker-compose. I then proceeded to build, and then run the container. This container works locally for me, but it seems as if my web server isn't listening for it?</p>
  <p>If anyone knows anything about this please help!</p>