postgresql13 pgadmin4 docker actual installation

The tutorials on the Internet are all fragmented or incomplete articles forwarded. This article records my first actual combat postgresql

docker version

 

Search for the latest postgresql version (psql13): docker search postgres

Pull the latest version of postgresql (psql13) image: docker pull postgres

After successful execution, the effect is shown in the following figure:

Successfully started the psql container:

 

 

As above, there are some additional configurations for PSQL, such as enabling remote access and user name settings, which will not be described in detail here, and you can find other information if you are interested.

 

Now prepare to install psql's visual web management interface pgadmin4

 

Pull image: docker pull dpage/pgadmin4

Start the container:

--name: Container naming

-p: port mapping: 1443 (host port) 80 (pgadmin is actually a web project, default port 80)

-e: PGADMIN_DEFAUL_EMAIL is the login username of the pgadmin console PGADMIN_DEFAUL_PASSWORD is the password

-d: selected image

 

Guess you like

Origin blog.csdn.net/qq_25062671/article/details/115010813
Recommended