How to install pgadmin4 with docker

We want PostgreSQL in a container and pgadmin4 in another container. And we want to connect the pgadmin4 container to the PostgreSQL container.

We do

$ sudo docker run -p 80:80 \
  --link postgres11:postgres11 \
  -e "" \
  -d dpage/pgadmin4

Remember that we wrote in the definition of the PostgreSQL container the name of the host :

--name postgres11

and then we open our browser on, we give the username/password as defined above and when create a server, we give as host name postgres11


For the host name, we give postgres11 instead of !

and then…


We can set about tackling the work !