title: Address not available Is the server running on that host and accepting TCP/IP connections?
body: <p>I am using PostgreSQL 14.4 inside Docker, and pgAdmin inside Docker for Windows.</p>
  <p>My command I used</p>
  <pre><code>docker run -d --name vy_posgres_for_acc -p 5432:5432 -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e PGDATA=D:\docker_mount\postgres\data postgres:latest
  
  
  docker run -d -p 5050:80 -e PGADMIN_DEFAULT_EMAIL=donhuvy@hotmail.com -e PGADMIN_DEFAULT_PASSWORD=postgres dpage/pgadmin4:latest
  
  # Go to http://localhost:5050/login PG admin 6.10
  </code></pre>
  <p>Error of pgAdmin</p>
  <pre><code>Address not available Is the server running on that host and accepting TCP/IP connections?
  </code></pre>
  <p><a href="https://i.stack.imgur.com/tsvyP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tsvyP.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/LgaIp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LgaIp.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/KKsY0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KKsY0.png" alt="enter image description here" /></a></p>
  <p>How to fix it?</p>