Here are my steps --
5. docker run -p 80:80 \
-e '[email protected]' \
-e 'PGADMIN_DEFAULT_PASSWORD=SuperSecret' \
-d dpage/pgadmin4
docker ps to confirm that container is running
curl http://localhost or http:127.0.0.1 is failing
From browser public-ip:80 is also failing ( timeout)
Really bothering me and appreciate any help/guidance to resolve.
This sounds like it should work fine, but here are my steps for creating the same setup.
This will allow inbound connections on ports 22 (SSH), 80 (HTTP) and 443 (HTTPS) from any external IP.
sudo apt update
and sudo apt install docker.io
.docker run -p 80:80 \
-e '[email protected]' \
-e 'PGADMIN_DEFAULT_PASSWORD=SuperSecret' \
-d dpage/pgadmin4
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1bbf1925d84a dpage/pgadmin4 "/entrypoint.sh" 8 minutes ago Up 8 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp, 443/tcp xenodochial_pike
You should also check that the port mapping is correct. It should be 0.0.0.0:80->80/tcp, :::80->80/tcp, 443/tcp
.
$ curl http://localhost
<!doctype html>
<html lang=en>
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to the target URL: <a href="/login?next=%2F">/login?next=%2F</a>. If not, click the link.
$ curl http://127.0.0.1
<!doctype html>
<html lang=en>
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to the target URL: <a href="/login?next=%2F">/login?next=%2F</a>. If not, click the link.