I’m new at using docker hub desktop. I created:
To start pgadmin from terminal: Worked
docker run -p 5050:80
-e “PGADMIN_DEFAULT_EMAIL=user@domain.com”
-e “PGADMIN_DEFAULT_PASSWORD=SuperSecret”
-d dpage/pgadmin4
May I suggest to switch to docker compose and leverage service discovery (basicly a network internal dns) to let pgadmin communicate with postgres? Service discovery is available in all user defined docker networks - but not in the default bridge network that containers use by default if no other network is specified.
Another option is to use legacy container links.
Since you already configured “–name expressparts” for the postgres container, you can use it to crate a link on the pgadmin4 container: